Displaying 1 result from an estimated 1 matches for "fooversion".
Did you mean:
foversion
2006 Oct 22
3
Keeping DRY - I like a simple life!
Hi,
I''m new to Ruby and Rails and I would be very grateful for some advice.
I''ve got the following code.
class Foo < ActiveRecord::Base
include Versionable # Some methods to handle my versioned objects
has_many :versions, :class_name => "FooVersion", :foreign_key =>
"parent_id"
belongs_to :curr, :class_name => "FooVersion", :foreign_key =>
"current_id"
belongs_to :unapproved, :class_name => "FooVersion", :foreign_key =>
"unapproved_id"
end
I''d like to make...