Class: Publinator::Page

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/publinator/page.rb

Instance Method Summary collapse

Instance Method Details

#asset_typesObject



8
9
10
# File 'app/models/publinator/page.rb', line 8

def asset_types
  ['header','pdf_document']
end

#nameObject



12
13
14
# File 'app/models/publinator/page.rb', line 12

def name
  title
end

#publishablesObject



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