Permalink
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (41 sloc) 1.06 KB
# encoding: utf-8
require 'formtastic/engine' if defined?(::Rails)
module Formtastic
extend ActiveSupport::Autoload
autoload :Helpers
autoload :HtmlAttributes
autoload :LocalizedString
autoload :Localizer
autoload :NamespacedClassFinder
autoload :InputClassFinder
autoload :ActionClassFinder
autoload :Deprecation
eager_autoload do
autoload :I18n
autoload :FormBuilder
autoload :Inputs
autoload :Actions
autoload :Util
end
# @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 < #{Util.minimum_version_of_rails} will be dropped")
end
# @public
class UnknownInputError < NameError
end
# @private
class UnknownActionError < NameError
end
# @private
class PolymorphicInputWithoutCollectionError < ArgumentError
end
# @private
class UnsupportedMethodForAction < ArgumentError
end
# @private
class UnsupportedEnumCollection < NameError
end
end