Aaron Pfeifer
2007-Apr-07 21:59 UTC
[ANN] PluginAWeek: fixture_references - Clean up your fixtures
Hey all, Just announcing a new plugin... fixture_references - Adds support for referencing external fixtures (by name) from within a fixture definition. Example: departments.yml: <% fixtures :employees id = 0 %> packaging: id: <%= id += 1 %> name: Packaging manager_id: <%= employees(:bob)[''id''] %> Wiki http://wiki.pluginaweek.org/Fixture_references Announcement http://www.pluginaweek.org/2007/04/07/14-fix-your-fixtures-with-fewer-foreign-key-ids/ Source http://svn.pluginaweek.org/trunk/plugins/active_record/migrations/fixture_references Development http://dev.pluginaweek.org/browser/trunk/plugins/active_record/migrations/fixture_references --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---