Module: WithoutScope::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.
25 26 27 28 29 |
# File 'lib/acts_as_revisable/base.rb', line 25 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.
33 34 35 36 |
# File 'lib/acts_as_revisable/base.rb', line 33 def acts_as_revision(*args, &block) revisable_shared_setup(args, block) self.send(:include, Revision) end |