config/initializers/view_component.rb in solidus_admin-0.1.0 vs config/initializers/view_component.rb in solidus_admin-0.2.0

- old
+ new

@@ -8,10 +8,10 @@ bold = "\e[1m" clear = "\e[0m" ActiveSupport::Notifications.subscribe("render.view_component") do |*args| - next unless args.last[:name].starts_with?("SolidusAdmin::") + next unless args.last[:name]&.starts_with?("SolidusAdmin::") event = ActiveSupport::Notifications::Event.new(*args) SolidusAdmin::BaseComponent.logger.debug \ " Rendered #{bold}#{event.payload[:name]}#{clear}" \ " (Duration: #{event.duration.round(1)}ms)"