Module: PaperTrail::ActiveRecordExt::VersionConcernExt
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/paper_trail/active_record/version_extensions.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#action ⇒ Object
57 58 59 60 61 62 63 64 65 66 |
# File 'lib/paper_trail/active_record/version_extensions.rb', line 57 def action case event when 'update' "updated" when 'create' "created" else "#{event}ed" end end |
#item_class ⇒ Object
68 69 70 |
# File 'lib/paper_trail/active_record/version_extensions.rb', line 68 def item_class item_type.safe_constantize end |