lib/action_view/component/railtie.rb in actionview-component-1.6.2 vs lib/action_view/component/railtie.rb in actionview-component-1.7.0
- old
+ new
@@ -33,12 +33,10 @@
end
end
initializer "action_view_component.eager_load_actions" do
ActiveSupport.on_load(:after_initialize) do
- ActionView::Component::Base.descendants.each do |descendant|
- descendant.compile if descendant.has_initializer? && config.eager_load
- end
+ ActionView::Component::Base.descendants.each(&:compile)
end
end
initializer "action_view_component.compile_config_methods" do
ActiveSupport.on_load(:action_view_component) do