Class: Impresser::ActiveRecord::Post

Inherits:
PostBase
  • Object
show all
Defined in:
lib/impresser/active_record/post.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



9
10
11
# File 'lib/impresser/active_record/post.rb', line 9

def self.sti_name
  "post"
end

Instance Method Details

#generate_guidObject



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