Class: WorthSaving::Draft

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/worth_saving/draft.rb

Instance Method Summary collapse

Instance Method Details

#reconstituted_recordObject



13
14
15
16
17
18
# File 'app/models/worth_saving/draft.rb', line 13

def reconstituted_record
  return unless recordable_class
  record = recordable || recordable_class.new
  record.attributes = recordable_params
  record
end