Colin Law wrote:
> On 31 May 2010 22:43, Paul A. <[email protected]> wrote:
>> I would be happy if I can do this (as example): User.first.group.id # =>
>> 2
> 
> You could run a rake task to put the data in the database, unless
> there is a good reason why you need it in a yaml file.
> 

I have 3 goods reasons for that:

 * data access is faster
 * read-only is sufficient
 * it's DRY (I don't repeat data between rake task and database: the 
YAML file is my data)

I think Active Hash is awesome.  Really awesome.
-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to