# 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