Sha256: d5d1db1bb6b2b6433f33682aa1f2d0785f075ccd3c40d83ff1851e30034d83ee
Contents?: true
Size: 605 Bytes
Versions: 1
Compression:
Stored size: 605 Bytes
Contents
module FormObject module Integrations module ActiveModel def self.included( base ) #:nodoc: base.versions.unshift(*versions) end include Base extend ClassMethods require 'form_object/integrations/active_model/versions' @defaults = {} def self.maching_ancestors %w{ActiveModel ActiveModel::Observing ActiveModel::Validations} end def assign_form_object_attributes( form ) self.assign_attributes( form.attributes ) end def form_object_attributes self.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/integrations/active_model.rb |