Browse files

Add missing ActiveModel::Validations require

[#5311 state: resolved]

ActiveModel::Validations uses Hash#except, but does not require it from
ActiveSupport.  (This wasn't showing up in the tests, because it was
required in the helper, and was also required in
ActiveModel::Serialization).

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 8fdecaa commit 1577eafe77ce2a1aed3049dde34eac721b8e5aa5 @gcampbell gcampbell committed with fxn Aug 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −0 activemodel/lib/active_model/validations.rb
  2. +0 −1 activemodel/test/cases/helper.rb
View
1 activemodel/lib/active_model/validations.rb
@@ -2,6 +2,7 @@
require 'active_support/core_ext/array/wrap'
require 'active_support/core_ext/class/attribute'
require 'active_support/core_ext/hash/keys'
+require 'active_support/core_ext/hash/except'
require 'active_model/errors'
require 'active_model/validations/callbacks'
View
1 activemodel/test/cases/helper.rb
@@ -6,7 +6,6 @@
require 'config'
require 'active_model'
require 'active_support/core_ext/string/access'
-require 'active_support/core_ext/hash/except'
# Show backtraces for deprecated behavior for quicker cleanup.
ActiveSupport::Deprecation.debug = true

0 comments on commit 1577eaf

Please sign in to comment.