Add data_display and include module in specs
This commit is contained in:
		
							parent
							
								
									8a838603ca
								
							
						
					
					
						commit
						f559869f56
					
				| @ -1,4 +1,6 @@ | |||||||
| class Category < ActiveRecord::Base | class Category < ActiveRecord::Base | ||||||
|  |   include TheModerator::Model | ||||||
|  | 
 | ||||||
|   has_one :page |   has_one :page | ||||||
|   accepts_nested_attributes_for :page |   accepts_nested_attributes_for :page | ||||||
| end | end | ||||||
|  | |||||||
| @ -1,4 +1,6 @@ | |||||||
| class Page < ActiveRecord::Base | class Page < ActiveRecord::Base | ||||||
|  |   include TheModerator::Model | ||||||
|  | 
 | ||||||
|   has_many :links |   has_many :links | ||||||
|   accepts_nested_attributes_for :links |   accepts_nested_attributes_for :links | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -22,6 +22,7 @@ ActiveRecord::Schema.define do | |||||||
|     t.integer  :moderatable_id |     t.integer  :moderatable_id | ||||||
|     t.string   :moderatable_type |     t.string   :moderatable_type | ||||||
|     t.text     :data |     t.text     :data | ||||||
|  |     t.text :data_display | ||||||
|     t.timestamps |     t.timestamps | ||||||
|   end |   end | ||||||
| end | end | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user