Class: Publinator::Page
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Publinator::Page
- Defined in:
- app/models/publinator/page.rb
Instance Method Summary collapse
Instance Method Details
#asset_types ⇒ Object
8 9 10 |
# File 'app/models/publinator/page.rb', line 8 def asset_types ['header','pdf_document'] end |
#name ⇒ Object
12 13 14 |
# File 'app/models/publinator/page.rb', line 12 def name title end |
#publishables ⇒ Object
16 17 18 |
# File 'app/models/publinator/page.rb', line 16 def publishables (self.asset_files - self.asset_files('header')).sort_by{|asset_file| asset_file.position} end |