Class: Impresser::ActiveRecord::Page
- Defined in:
- lib/impresser/active_record/page.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from PostBase
Methods inherited from Base
Class Method Details
.sti_name ⇒ Object
12 13 14 |
# File 'lib/impresser/active_record/page.rb', line 12 def self.sti_name "page" end |
Instance Method Details
#generate_guid ⇒ Object
7 8 9 10 |
# File 'lib/impresser/active_record/page.rb', line 7 def generate_guid site_url = Option.where(:option_name => "siteurl").first "#{site_url.option_value}/?page=#{self.id}" end |