Initial commit of making ar-extensions import Rails 3 friendly

This commit is contained in:
Zach Dennis 2010-02-25 22:53:30 -05:00
commit ca5f83e1cf
10 changed files with 701 additions and 0 deletions

6
test/models/topic.rb Normal file
View file

@ -0,0 +1,6 @@
class Topic < ActiveRecord::Base
validates_presence_of :author_name
has_many :books
composed_of :description, :mapping => [ %w(title title), %w(author_name author_name)], :allow_nil => true, :class_name => "TopicDescription"
end