Module: ActionDraft::Attribute

Extended by:
ActiveSupport::Concern
Defined in:
lib/action-draft/attribute.rb

Instance Method Summary collapse

Instance Method Details

#apply_draftObject



10
11
12
13
14
15
# File 'lib/action-draft/attribute.rb', line 10

def apply_draft
  self.class.action_draft_attributes ||= []
  self.class.action_draft_attributes.each do |_name|
    self.send("#{_name}=", self.send("draft_#{_name}").to_s)
  end
end