Skip to content

Commit

Permalink
Merge pull request #108 from brentd/bugs/ruby-3.0.0
Browse files Browse the repository at this point in the history
Fix "undefined method safe_append=" on Ruby 3.0.0
  • Loading branch information
brentd authored Oct 13, 2024
2 parents f211b56 + f121814 commit 06d9911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/xray/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ class Engine < ::Rails::Engine
ActionView::Template.class_eval do
extend Xray::Aliasing

def render_with_xray(*args, &block)
def render_with_xray(*args, **kwargs, &block)
path = identifier
view = args.first
source = render_without_xray(*args, &block)
source = render_without_xray(*args, **kwargs, &block)

suitable_template = !(view.respond_to?(:mailer) && view.mailer) &&
!path.include?('_xray_bar') &&
Expand Down

0 comments on commit 06d9911

Please sign in to comment.