Module: Drafter::Apply
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/drafter/apply.rb
Overview
Applies draft data to draftable objects.
Instance Method Summary collapse
-
#apply_draft ⇒ Object
Apply the draft data to the draftable, without saving it.
Instance Method Details
#apply_draft ⇒ Object
Apply the draft data to the draftable, without saving it.
8 9 10 11 12 13 14 15 |
# File 'lib/drafter/apply.rb', line 8 def apply_draft if draft restore_attrs restore_files restore_subdrafts end self end |