lib/action_view/component/railtie.rb in actionview-component-1.5.1 vs lib/action_view/component/railtie.rb in actionview-component-1.5.2
- old
+ new
@@ -39,14 +39,15 @@
ActiveSupport.on_load(:action_view_component) do
config.compile_methods! if config.respond_to?(:compile_methods!)
end
end
- initializer "action_view_component.eager_load_actions" do
- ActiveSupport.on_load(:after_initialize) do
- ActionView::Component::Base.descendants.each(&:action_methods) if config.eager_load
- end
- end
+ # Disabled because `ActionView::Component::Base` doesn't implement `#action_methods`
+ # initializer "action_view_component.eager_load_actions" do
+ # ActiveSupport.on_load(:after_initialize) do
+ # ActionView::Component::Base.descendants.each(&:action_methods) if config.eager_load
+ # end
+ # end
config.after_initialize do |app|
options = app.config.action_view_component
if options.show_previews