Sha256: c8567f9cb2cc3e29064b1a02e24eb3f505fe00d40fbe53aa8aacb19d1b52fae5
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
require 'forwardable' require 'ostruct' require 'active_model' module FreeForm class Form extend Forwardable extend ActiveModel::Naming extend ActiveModel::Callbacks include ActiveModel::Conversion include ActiveModel::Validations # Instance Methods #---------------------------------------------------------------------------- # Required for ActiveModel def persisted? false end def initialize(h={}) h.each {|k,v| send("#{k}=",v)} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
freeform-0.0.2 | lib/freeform/form.rb |