Module: Drafter::ClassMethods
- Defined in:
- lib/drafter.rb
Instance Method Summary collapse
Instance Method Details
#draftable(options = {}) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/drafter.rb', line 33 def draftable(={}) include Apply include Creation include Diffing include Draftable include IdHash include Subdrafts end |
#saves_subdrafts_for(*associations) ⇒ Object
42 43 44 45 |
# File 'lib/drafter.rb', line 42 def saves_subdrafts_for(*associations) cattr_accessor :saves_subdrafts_for self.saves_subdrafts_for = associations end |