Sha256: 97b14acf629ac7e2aa16337424d67f58576543111ddf74e3529b95c0e7f91538
Contents?: true
Size: 368 Bytes
Versions: 1
Compression:
Stored size: 368 Bytes
Contents
module FormObject module Dsl module InstanceMethods def model raise ModelUndefinedError.new(self) unless @model @model.assign_form_object_attributes(self) @model end def assign_model( model_instance ) @model = model_instance self.attributes = @model.form_object_attributes 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/instance_methods.rb |