Module: FatJam::ActsAsRevisable::ClassMethods
- Defined in:
- lib/acts_as_revisable/base.rb
Instance Method Summary collapse
-
#acts_as_revisable(*args, &block) ⇒ Object
This
acts_as
extension provides for making a model the revisable model in an acts_as_revisable pair. -
#acts_as_revision(*args, &block) ⇒ Object
This
acts_as
extension provides for making a model the revision model in an acts_as_revisable pair.
Instance Method Details
#acts_as_revisable(*args, &block) ⇒ Object
This acts_as
extension provides for making a model the revisable model in an acts_as_revisable pair.
23 24 25 26 27 |
# File 'lib/acts_as_revisable/base.rb', line 23 def acts_as_revisable(*args, &block) revisable_shared_setup(args, block) self.send(:include, Revisable) self.send(:include, Deletable) if self..on_delete == :revise end |
#acts_as_revision(*args, &block) ⇒ Object
This acts_as
extension provides for making a model the revision model in an acts_as_revisable pair.
31 32 33 34 |
# File 'lib/acts_as_revisable/base.rb', line 31 def acts_as_revision(*args, &block) revisable_shared_setup(args, block) self.send(:include, Revision) end |