Class: Impresser::ActiveRecord::PostBase

Inherits:
Base
  • Object
show all
Defined in:
lib/impresser/active_record/post_base.rb

Direct Known Subclasses

Attachment, Page, Post

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#unserialize

Class Method Details

.find_sti_class(type_name) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/impresser/active_record/post_base.rb', line 25

def self.find_sti_class(type_name)
  if %w(post page attachment).include?(type_name)
    "Impresser::ActiveRecord::#{type_name.classify}".constantize
  else
    Impresser::ActiveRecord::PostBase
  end
end

Instance Method Details

#generate_guidObject



21
22
23
# File 'lib/impresser/active_record/post_base.rb', line 21

def generate_guid
  %()
end