#102 √ resolved
Darsono Sutedja

Define association method in Data-Factory

Reported by Darsono Sutedja | August 18th, 2008 @ 11:21 AM | in 0.7.0

Instead of overloading the field method to handle data association, we need to define a new method called association.

usage:

association :owner_id, {User => :id}, :first

this is equivalent to the old way of doing association:

field :owner_id, {"user" => "id"}, {:assoc => :first}

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Mack is a Ruby web application framework focused on writing distributed, portal-like, applications. it's built on best of breed technologies, such as Rack, Cachetastic, and DataMapper.

Shared Ticket Bins

People watching this ticket

Referenced by