Ruby on Rails Tuesday, July 31, 2012


On Tuesday, July 31, 2012 2:09:41 AM UTC+1, John Merlino wrote:


Account.reflect_on_association(:users).active_record
 => Account(id: integer, name: string, created_at: datetime,
updated_at: datetime, ancestry: string, street_address: string, city:
string, postal_code: string, state: string, country: string,
street_address2: string, account_type_id: integer, client_logo:
string, subdomain: string, email: string, phone: string)

What it returns is not the Account object.

According to documentation, it "Returns the value of attribute
active_record".


http://rubydoc.info/docs/rails/3.0.0/ActiveRecord/Reflection/MacroReflection#active_record-instance_method


Well, that's not too informative...


What's your question (and what the relationship with  your subject line?) ?

Fred

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/R9_hujNydvsJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment