Sha256: e2286bc2475f15654c170a228698a669c7872cb361dfc4d75dfa3fc334ecd6ab

Contents?: true

Size: 276 Bytes

Versions: 3

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true

require 'active_model/type'

module ActForm
  module Type
    # Add +Object+ type
    class Object < ActiveModel::Type::Value
      def type
        :object
      end
    end
  end
end

ActiveModel::Type.register(:object, ActForm::Type::Object)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
act_form-0.5.0 lib/act_form/type.rb
act_form-0.4.4 lib/act_form/type.rb
act_form-0.4.3 lib/act_form/type.rb