Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6972

Show
Ignore:
Timestamp:
06/08/07 19:32:15 (1 year ago)
Author:
xal
Message:

Fixed query methods on resources. [Cody Fauser]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activeresource/CHANGELOG

    r6925 r6972  
    11*SVN* 
     2 
     3* Fix query methods on resources. [Cody Fauser] 
    24 
    35* pass the prefix_options to the instantiated record when using find without a specific id. Closes #8544 [alloy] 
  • trunk/activeresource/lib/active_resource/base.rb

    r6925 r6972  
    416416            attributes[method_name.first(-1)] = arguments.first 
    417417          when "?" 
    418             attributes[method_name.first(-1)] == true 
     418            attributes[method_name.first(-1)] 
    419419          else 
    420420            attributes.has_key?(method_name) ? attributes[method_name] : super 
  • trunk/activeresource/test/base_test.rb

    r6925 r6972  
    182182    assert_kind_of Person, matz 
    183183    assert_equal "Matz", matz.name 
     184    assert matz.name? 
    184185  end 
    185186