Class: Impresser::ActiveRecord::PostBase
- Defined in:
- lib/impresser/active_record/post_base.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
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_guid ⇒ Object
21 22 23 |
# File 'lib/impresser/active_record/post_base.rb', line 21 def generate_guid %() end |