Sha256: 05193a3d88d20f61599b1a52cc061279ad42819bc0cc042b4c4320fa549d090c

Contents?: true

Size: 954 Bytes

Versions: 1

Compression:

Stored size: 954 Bytes

Contents

# encoding: utf-8
require 'formtastic/engine' if defined?(::Rails)

module Formtastic
  extend ActiveSupport::Autoload

  autoload :FormBuilder
  autoload :Helpers
  autoload :HtmlAttributes
  autoload :I18n
  autoload :Inputs
  autoload :Actions
  autoload :LocalizedString
  autoload :Localizer
  autoload :Util
  autoload :NamespacedClassFinder
  autoload :InputClassFinder
  autoload :ActionClassFinder
  autoload :Deprecation

  # @private
  mattr_accessor :deprecation
  self.deprecation = Formtastic::Deprecation.new('4.0', 'Formtastic')

  if defined?(::Rails) && Util.deprecated_version_of_rails?
    deprecation.warn("Support for Rails < 4.0.4 will be dropped ")
  end

  # @public
  class UnknownInputError < NameError
  end

  # @private
  class UnknownActionError < NameError
  end

  # @private
  class PolymorphicInputWithoutCollectionError < ArgumentError
  end

  # @private
  class UnsupportedMethodForAction < ArgumentError
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
formtastic-3.1.1 lib/formtastic.rb