diff options
author | Xavier Noria <fxn@hashref.com> | 2010-03-28 14:15:02 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-03-28 14:15:02 +0200 |
commit | 76f024ac8db82490a99c71d0d8951d677e3bc9bc (patch) | |
tree | 4fda85acd8a48e5a678c55cb894005fa1226ad54 /activeresource/lib/active_resource | |
parent | 105f9b8154bbee88b45e0bb9de949206cbc1ba02 (diff) | |
download | rails-76f024ac8db82490a99c71d0d8951d677e3bc9bc.tar.gz rails-76f024ac8db82490a99c71d0d8951d677e3bc9bc.tar.bz2 rails-76f024ac8db82490a99c71d0d8951d677e3bc9bc.zip |
adds missing requires for Object#blank? and Object#present?
Diffstat (limited to 'activeresource/lib/active_resource')
-rw-r--r-- | activeresource/lib/active_resource/custom_methods.rb | 2 | ||||
-rw-r--r-- | activeresource/lib/active_resource/validations.rb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/activeresource/lib/active_resource/custom_methods.rb b/activeresource/lib/active_resource/custom_methods.rb index ff14b49b07..dd3e35dfc7 100644 --- a/activeresource/lib/active_resource/custom_methods.rb +++ b/activeresource/lib/active_resource/custom_methods.rb @@ -1,3 +1,5 @@ +require 'active_support/core_ext/object/blank' + module ActiveResource # A module to support custom REST methods and sub-resources, allowing you to break out # of the "default" REST methods with your own custom resource requests. For example, diff --git a/activeresource/lib/active_resource/validations.rb b/activeresource/lib/active_resource/validations.rb index 4774c6dd22..a19e0d0ac9 100644 --- a/activeresource/lib/active_resource/validations.rb +++ b/activeresource/lib/active_resource/validations.rb @@ -1,4 +1,5 @@ require 'active_support/core_ext/array/wrap' +require 'active_support/core_ext/object/blank' module ActiveResource class ResourceInvalid < ClientError #:nodoc: |