Class: WorthSaving::Draft
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- WorthSaving::Draft
- Defined in:
- app/models/worth_saving/draft.rb
Instance Method Summary collapse
Instance Method Details
#reconstituted_record ⇒ Object
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 |