1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[Active Model] require => require_relative

This basically reverts ee5cfc01a5
This commit is contained in:
Akira Matsuda 2017-10-21 22:15:16 +09:00
parent 589dd0f6c9
commit 8c2ba84d63
7 changed files with 23 additions and 23 deletions

View file

@ -25,7 +25,7 @@
require "active_support"
require "active_support/rails"
require_relative "active_model/version"
require "active_model/version"
module ActiveModel
extend ActiveSupport::Autoload

View file

@ -1,21 +1,21 @@
# frozen_string_literal: true
require_relative "type/helpers"
require_relative "type/value"
require "active_model/type/helpers"
require "active_model/type/value"
require_relative "type/big_integer"
require_relative "type/binary"
require_relative "type/boolean"
require_relative "type/date"
require_relative "type/date_time"
require_relative "type/decimal"
require_relative "type/float"
require_relative "type/immutable_string"
require_relative "type/integer"
require_relative "type/string"
require_relative "type/time"
require "active_model/type/big_integer"
require "active_model/type/binary"
require "active_model/type/boolean"
require "active_model/type/date"
require "active_model/type/date_time"
require "active_model/type/decimal"
require "active_model/type/float"
require "active_model/type/immutable_string"
require "active_model/type/integer"
require "active_model/type/string"
require "active_model/type/time"
require_relative "type/registry"
require "active_model/type/registry"
module ActiveModel
module Type

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative "integer"
require "active_model/type/integer"
module ActiveModel
module Type

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative "helpers/accepts_multiparameter_time"
require_relative "helpers/numeric"
require_relative "helpers/mutable"
require_relative "helpers/time_value"
require "active_model/type/helpers/accepts_multiparameter_time"
require "active_model/type/helpers/numeric"
require "active_model/type/helpers/mutable"
require "active_model/type/helpers/time_value"

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative "immutable_string"
require "active_model/type/immutable_string"
module ActiveModel
module Type

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative "clusivity"
require "active_model/validations/clusivity"
module ActiveModel
module Validations

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative "clusivity"
require "active_model/validations/clusivity"
module ActiveModel
module Validations