aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-03-28 14:15:02 +0200
committerXavier Noria <fxn@hashref.com>2010-03-28 14:15:02 +0200
commit76f024ac8db82490a99c71d0d8951d677e3bc9bc (patch)
tree4fda85acd8a48e5a678c55cb894005fa1226ad54 /activemodel/lib
parent105f9b8154bbee88b45e0bb9de949206cbc1ba02 (diff)
downloadrails-76f024ac8db82490a99c71d0d8951d677e3bc9bc.tar.gz
rails-76f024ac8db82490a99c71d0d8951d677e3bc9bc.tar.bz2
rails-76f024ac8db82490a99c71d0d8951d677e3bc9bc.zip
adds missing requires for Object#blank? and Object#present?
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/errors.rb1
-rw-r--r--activemodel/lib/active_model/validator.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index a9a54a90e0..8d28040c32 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -1,5 +1,6 @@
require 'active_support/core_ext/array/wrap'
require 'active_support/core_ext/string/inflections'
+require 'active_support/core_ext/object/blank'
require 'active_support/ordered_hash'
module ActiveModel
diff --git a/activemodel/lib/active_model/validator.rb b/activemodel/lib/active_model/validator.rb
index b7c52be3f0..906d239bcc 100644
--- a/activemodel/lib/active_model/validator.rb
+++ b/activemodel/lib/active_model/validator.rb
@@ -1,5 +1,6 @@
require 'active_support/core_ext/array/wrap'
require "active_support/core_ext/module/anonymous"
+require 'active_support/core_ext/object/blank'
module ActiveModel #:nodoc:
# A simple base class that can be used along with