Sha256: 9ce89b2dbface2662ee9f86ff6ad72f9e7724d7d4668eb77344f4409f291a95a

Contents?: true

Size: 226 Bytes

Versions: 2

Compression:

Stored size: 226 Bytes

Contents

require 'representable/json'

module Reform
  module Form::JSON
    def self.included(base)
      base.representer_class.send :include, Representable::JSON
    end

    def deserialize_method
      :from_json
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reform-1.2.0.beta2 lib/reform/form/json.rb
reform-1.2.0.beta1 lib/reform/form/json.rb