Use ActiveSupport::Autoload to autoload the tags

上级 d4248fa0
module ActionView module ActionView
module Helpers module Helpers
module Tags module Tags #:nodoc:
autoload :Base, 'action_view/helpers/tags/base' extend ActiveSupport::Autoload
autoload :Label, 'action_view/helpers/tags/label'
autoload :TextField, 'action_view/helpers/tags/text_field' autoload :Base
autoload :PasswordField, 'action_view/helpers/tags/password_field' autoload :Label
autoload :HiddenField, 'action_view/helpers/tags/hidden_field' autoload :TextField
autoload :FileField, 'action_view/helpers/tags/file_field' autoload :PasswordField
autoload :SearchField, 'action_view/helpers/tags/search_field' autoload :HiddenField
autoload :TelField, 'action_view/helpers/tags/tel_field' autoload :FileField
autoload :UrlField, 'action_view/helpers/tags/url_field' autoload :SearchField
autoload :EmailField, 'action_view/helpers/tags/email_field' autoload :TelField
autoload :NumberField, 'action_view/helpers/tags/number_field' autoload :UrlField
autoload :RangeField, 'action_view/helpers/tags/range_field' autoload :EmailField
autoload :TextArea, 'action_view/helpers/tags/text_area' autoload :NumberField
autoload :CheckBox, 'action_view/helpers/tags/check_box' autoload :RangeField
autoload :RadioButton, 'action_view/helpers/tags/radio_button' autoload :TextArea
autoload :Select, 'action_view/helpers/tags/select' autoload :CheckBox
autoload :CollectionSelect, 'action_view/helpers/tags/collection_select' autoload :RadioButton
autoload :GroupedCollectionSelect, 'action_view/helpers/tags/grouped_collection_select' autoload :Select
autoload :TimeZoneSelect, 'action_view/helpers/tags/time_zone_select' autoload :CollectionSelect
autoload :DateSelect, 'action_view/helpers/tags/date_select' autoload :GroupedCollectionSelect
autoload :TimeSelect, 'action_view/helpers/tags/time_select' autoload :TimeZoneSelect
autoload :DatetimeSelect, 'action_view/helpers/tags/datetime_select' autoload :DateSelect
autoload :TimeSelect
autoload :DatetimeSelect
end end
end end
end end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册