Sha256: 490f1aaca03dd78d9a2906236b9d566ea7698babb5416ad2f1f9408aee8d5a19
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
module FormObject module Dsl module ClassMethods def map_model( model_class, options = {} ) store.map_for_model( self, model_class, options ) end def form_name FormObject::Utils::StringConverter.form_name(self.name).to_sym end def model store.find(form: self).first.try(:model) end protected def store FormObject::Store.instance end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
form_object-0.1.1 | lib/form_object/dsl/class_methods.rb |