Sha256: f820af574d88271d5eec8f509fbb195c942103087d3a79cae780c775feffd431

Contents?: true

Size: 828 Bytes

Versions: 3

Compression:

Stored size: 828 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
  
  # Deprecate support for Rails < 3.2
  if defined?(::Rails) && Util.deprecated_version_of_rails?
    ::ActiveSupport::Deprecation.warn(
      "Support for Rails < 3.2.13 will be dropped from Formtastic 3.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-2.3.1 lib/formtastic.rb
formtastic-2.3.0 lib/formtastic.rb
formtastic-2.3.0.rc4 lib/formtastic.rb