Sha256: 1f63090178b3d06ef909cb692ea22ec9e79373904c3127f33b66207356fd2ef3

Contents?: true

Size: 575 Bytes

Versions: 2

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

require 'active_form_model/version'
require 'active_support/concern'

module ActiveFormModel
  autoload :Virtual, 'active_form_model/virtual'
  autoload :Permittable, 'active_form_model/permittable'

  class Error < StandardError; end

  extend ActiveSupport::Concern

  include Permittable

  class_methods do
    delegate :sti_name, to: :superclass
    delegate :human_attribute_name, to: :superclass

    # NOTE: too many side effects if it is enabled
    # examples: form names, translations
    # delegate :name, to: :superclass
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_form_model-0.5.1 lib/active_form_model.rb
active_form_model-0.4.1 lib/active_form_model.rb