Add data_display and include module in specs

master
Guillaume Dott 2014-08-11 09:12:41 +02:00
parent 8a838603ca
commit f559869f56
3 changed files with 5 additions and 0 deletions

View File

@ -1,4 +1,6 @@
class Category < ActiveRecord::Base
include TheModerator::Model
has_one :page
accepts_nested_attributes_for :page
end

View File

@ -1,4 +1,6 @@
class Page < ActiveRecord::Base
include TheModerator::Model
has_many :links
accepts_nested_attributes_for :links

View File

@ -22,6 +22,7 @@ ActiveRecord::Schema.define do
t.integer :moderatable_id
t.string :moderatable_type
t.text :data
t.text :data_display
t.timestamps
end
end