Sha256: 03f53cc9fc1630dc781ec604a070c0ec98cef58c79c25123cf794ffd52ca22d5

Contents?: true

Size: 810 Bytes

Versions: 2

Compression:

Stored size: 810 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 Util.deprecated_version_of_rails?
    ::ActiveSupport::Deprecation.warn(
      "Support for Rails 3.0 and 3.1 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

2 entries across 2 versions & 1 rubygems

Version Path
formtastic-2.3.0.rc3 lib/formtastic.rb
formtastic-2.3.0.rc2 lib/formtastic.rb