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