diff options
author | Zach Inglis <zach@lt3media.com> | 2008-08-23 13:41:54 -0400 |
---|---|---|
committer | Zach Inglis <zach@lt3media.com> | 2008-08-25 14:21:21 -0400 |
commit | 4c86f074a7e3506886299c6290b539d1bc5f9d03 (patch) | |
tree | e9597e00c27767f3d4bfede9a1cc7f6760ddfd57 /activerecord | |
parent | 4e6f91402ce2dfa1b105212878209fa55f57cb6f (diff) | |
download | rails-4c86f074a7e3506886299c6290b539d1bc5f9d03.tar.gz rails-4c86f074a7e3506886299c6290b539d1bc5f9d03.tar.bz2 rails-4c86f074a7e3506886299c6290b539d1bc5f9d03.zip |
Corrected interpolation in a model find
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 8129d571a6..88a7b52bfb 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -658,10 +658,15 @@ module ActiveRecord # (*Note*: +collection+ is replaced with the symbol passed as the first argument, so # <tt>has_many :clients</tt> would add among others <tt>clients.empty?</tt>.) # +<<<<<<< HEAD:activerecord/lib/active_record/associations.rb # === Example # # A Firm class declares <tt>has_many :clients</tt>, which will add: # * <tt>Firm#clients</tt> (similar to <tt>Clients.find :all, :conditions => "firm_id = #{id}"</tt>) +======= + # Example: A Firm class declares <tt>has_many :clients</tt>, which will add: + # * <tt>Firm#clients</tt> (similar to <tt>Clients.find :all, :conditions => ["firm_id = ?", id]</tt>) +>>>>>>> Corrected interpolation in a model find:activerecord/lib/active_record/associations.rb # * <tt>Firm#clients<<</tt> # * <tt>Firm#clients.delete</tt> # * <tt>Firm#clients=</tt> |