Class: ActiveDryForm::BaseForm::HashRecord
- Inherits:
-
Hash
- Object
- Hash
- ActiveDryForm::BaseForm::HashRecord
- Defined in:
- lib/active_dry_form/base_form.rb
Instance Method Summary collapse
Instance Method Details
#define_methods ⇒ Object
276 277 278 279 280 |
# File 'lib/active_dry_form/base_form.rb', line 276 def define_methods keys.each do |key| define_singleton_method(key) { fetch(key) } end end |
#id ⇒ Object
272 273 274 |
# File 'lib/active_dry_form/base_form.rb', line 272 def id self[:id] || self['id'] end |
#persisted? ⇒ Boolean
268 269 270 |
# File 'lib/active_dry_form/base_form.rb', line 268 def persisted? false end |