diff options
author | Tobias Lütke <tobias.luetke@gmail.com> | 2007-06-08 19:32:15 +0000 |
---|---|---|
committer | Tobias Lütke <tobias.luetke@gmail.com> | 2007-06-08 19:32:15 +0000 |
commit | bfda4cdc5a0ac1b8e846f0838eca36075b3be987 (patch) | |
tree | 052075492f7d7f38efeaf3257c5ffed5db816d0f /activeresource/lib/active_resource | |
parent | 7de21cc1c5ae899207f9aab9e111eda265bb2f32 (diff) | |
download | rails-bfda4cdc5a0ac1b8e846f0838eca36075b3be987.tar.gz rails-bfda4cdc5a0ac1b8e846f0838eca36075b3be987.tar.bz2 rails-bfda4cdc5a0ac1b8e846f0838eca36075b3be987.zip |
Fixed query methods on resources. [Cody Fauser]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activeresource/lib/active_resource')
-rw-r--r-- | activeresource/lib/active_resource/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb index 3048aa5b89..78d1c0033a 100644 --- a/activeresource/lib/active_resource/base.rb +++ b/activeresource/lib/active_resource/base.rb @@ -415,7 +415,7 @@ module ActiveResource when "=" attributes[method_name.first(-1)] = arguments.first when "?" - attributes[method_name.first(-1)] == true + attributes[method_name.first(-1)] else attributes.has_key?(method_name) ? attributes[method_name] : super end |