Sha256: d10e992f9082236159a0f3b504c41461eac5581cbd717e82601aac389e420664

Contents?: true

Size: 798 Bytes

Versions: 3

Compression:

Stored size: 798 Bytes

Contents

require 'granite/form/model/conventions'
require 'granite/form/model/attributes'
require 'granite/form/model/validations'
require 'granite/form/model/scopes'
require 'granite/form/model/primary'
require 'granite/form/model/persistence'
require 'granite/form/model/associations'
require 'granite/form/model/representation'
require 'granite/form/model/dirty'

module Granite
  module Form
    module Model
      extend ActiveSupport::Concern

      included do
        extend ActiveModel::Naming
        extend ActiveModel::Translation

        include ActiveModel::Conversion
        include ActiveModel::Serialization
        include ActiveModel::Serializers::JSON

        include Util
        include Conventions
        include Attributes
        include Validations
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
granite-form-0.6.0 lib/granite/form/model.rb
granite-form-0.5.0 lib/granite/form/model.rb
granite-form-0.4.0 lib/granite/form/model.rb