Sha256: 7ea22b284c30168d684142821a69dbd88d906b05c2b2564aa0cf64d6699575f4

Contents?: true

Size: 294 Bytes

Versions: 6

Compression:

Stored size: 294 Bytes

Contents

require 'active_model'

module LightForm
  class Form
    include ActiveModel::Model
    include ActiveModel::Serializers::JSON
    include PropertyMethods

    def initialize(params = {})
      super(_prepare_params(params))
    end

    def to_h(*args)
      as_json(*args)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
light_form-0.0.7 lib/light_form/form.rb
light_form-0.0.6 lib/light_form/form.rb
light_form-0.0.5 lib/light_form/form.rb
light_form-0.0.4 lib/light_form/form.rb
light_form-0.0.3 lib/light_form/form.rb
light_form-0.0.2 lib/light_form/form.rb