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 | ||||
|   include TheModerator::Model | ||||
| 
 | ||||
|   has_one :page | ||||
|   accepts_nested_attributes_for :page | ||||
| end | ||||
|  | ||||
| @ -1,4 +1,6 @@ | ||||
| class Page < ActiveRecord::Base | ||||
|   include TheModerator::Model | ||||
| 
 | ||||
|   has_many :links | ||||
|   accepts_nested_attributes_for :links | ||||
| 
 | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user