Sha256: fd24125fe44a6799164e0fd8ca7d4763a5dba72acd7c2a8bc7fff4c6301c13e1

Contents?: true

Size: 789 Bytes

Versions: 3

Compression:

Stored size: 789 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
  
  if defined?(::Rails) && Util.deprecated_version_of_rails?
    ::ActiveSupport::Deprecation.warn(
      "Support for Rails < 4.0.4 will be dropped from Formtastic 4.0",
      caller)
  end

  # @private
  class UnknownInputError < NameError
  end
  
  # @private
  class UnknownActionError < NameError
  end
  
  # @private
  class PolymorphicInputWithoutCollectionError < ArgumentError
  end
  
  # @private
  class UnsupportedMethodForAction < ArgumentError
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
formtastic-3.0.0 lib/formtastic.rb
formtastic-3.0.0.rc2 lib/formtastic.rb
formtastic-3.0.0.rc lib/formtastic.rb