Module: ActionDraft::Attribute
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/action-draft/attribute.rb
Instance Method Summary collapse
Instance Method Details
#apply_draft ⇒ Object
11 12 13 14 15 16 |
# File 'lib/action-draft/attribute.rb', line 11 def apply_draft self.action_draft_attributes ||= [] self.action_draft_attributes.each do |_name| self.send("#{_name}=", self.send("draft_#{_name}").to_s) end end |