Skip to content

Commit

Permalink
Update context.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Mar 2, 2024
1 parent b2a3ef9 commit 2effdd2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/phlex/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ def initialize

attr_accessor :buffer, :capturing

# Added for backwards compatibility with phlex-rails. We can remove this with 2.0
def target
@buffer
end

def capturing_into(new_buffer)
original_buffer = @buffer
original_capturing = @capturing
Expand Down

0 comments on commit 2effdd2

Please sign in to comment.