1
0
Fork 0
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:
Yves Senn 2012-11-25 17:08:57 +01:00
parent b7edbc718b
commit 22598ee599
8 changed files with 5 additions and 12 deletions

View file

@ -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*

View file

@ -1,5 +1,3 @@
require 'active_support/callbacks'
module ActiveModel
# == Active \Model \Callbacks
#

View file

@ -1,5 +1,3 @@
require 'active_support/inflector'
module ActiveModel
# == Active \Model Conversions
#

View file

@ -1,4 +1,3 @@
require 'active_model/attribute_methods'
require 'active_support/hash_with_indifferent_access'
require 'active_support/core_ext/object/duplicable'

View file

@ -1,4 +1,3 @@
require 'active_support/inflector'
require 'active_support/core_ext/hash/except'
require 'active_support/core_ext/module/introspection'

View file

@ -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

View file

@ -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

View file

@ -1,5 +1,3 @@
require 'active_support/callbacks'
module ActiveModel
module Validations
# == Active \Model Validation Callbacks