mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
cleanup, removed dispensable require
statements from ActiveModel
This commit is contained in:
parent
b7edbc718b
commit
22598ee599
8 changed files with 5 additions and 12 deletions
|
@ -1,5 +1,10 @@
|
|||
## Rails 4.0.0 (unreleased) ##
|
||||
|
||||
* Removed dispensable `require` statements. Make sure to require `active_model` before requiring
|
||||
individual parts of the framework.
|
||||
|
||||
*Yves Senn*
|
||||
|
||||
* Use BCrypt's MIN_COST in the test environment for speedier tests when using `has_secure_pasword`.
|
||||
|
||||
*Brian Cardarella + Jeremy Kemper + Trevor Turk*
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
require 'active_support/callbacks'
|
||||
|
||||
module ActiveModel
|
||||
# == Active \Model \Callbacks
|
||||
#
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
require 'active_support/inflector'
|
||||
|
||||
module ActiveModel
|
||||
# == Active \Model Conversions
|
||||
#
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'active_model/attribute_methods'
|
||||
require 'active_support/hash_with_indifferent_access'
|
||||
require 'active_support/core_ext/object/duplicable'
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'active_support/inflector'
|
||||
require 'active_support/core_ext/hash/except'
|
||||
require 'active_support/core_ext/module/introspection'
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ require 'active_support/core_ext/module/remove_method'
|
|||
require 'active_support/core_ext/string/inflections'
|
||||
require 'active_support/core_ext/enumerable'
|
||||
require 'active_support/core_ext/object/try'
|
||||
require 'active_support/descendants_tracker'
|
||||
|
||||
module ActiveModel
|
||||
# == Active \Model Observers Activation
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
require 'active_support/core_ext/array/extract_options'
|
||||
require 'active_support/core_ext/hash/keys'
|
||||
require 'active_support/core_ext/hash/except'
|
||||
require 'active_model/errors'
|
||||
require 'active_model/validations/callbacks'
|
||||
require 'active_model/validator'
|
||||
|
||||
module ActiveModel
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
require 'active_support/callbacks'
|
||||
|
||||
module ActiveModel
|
||||
module Validations
|
||||
# == Active \Model Validation Callbacks
|
||||
|
|
Loading…
Reference in a new issue