lib/action_view/component.rb in actionview-component-1.6.0 vs lib/action_view/component.rb in actionview-component-1.6.1

- old
+ new

@@ -1,6 +1,22 @@ # frozen_string_literal: true -require "action_view/component/monkey_patch" -require "action_view/component/active_model_conversion_monkey_patch" -require "action_view/component/base" +require "active_model" +require "action_view" +require "active_support/dependencies/autoload" require "action_view/component/railtie" + +module ActionView + module Component + extend ActiveSupport::Autoload + + autoload :Base + autoload :Conversion + autoload :Preview + autoload :Previewable + autoload :TestHelpers + autoload :TestCase + autoload :RenderMonkeyPatch + end +end + +ActiveModel::Conversion.include ActionView::Component::Conversion