Class: Impresser::ActiveRecord::Page

Inherits:
PostBase
  • Object
show all
Defined in:
lib/impresser/active_record/page.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PostBase

find_sti_class

Methods inherited from Base

#unserialize

Class Method Details

.sti_nameObject



12
13
14
# File 'lib/impresser/active_record/page.rb', line 12

def self.sti_name
  "page"
end

Instance Method Details

#generate_guidObject



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