Skip to content

Commit

Permalink
Fix error on Rails 7.2
Browse files Browse the repository at this point in the history
This patch fixes the following error

```
Failure/Error: super(object, CollectorProxy.new(collector))

NoMethodError:
  undefined method 'retryable=' for an instance of ActiveRecord::Originator::CollectorProxy
 ./lib/activerecord/originator/arel_visitor_extension.rb:21:in 'ActiveRecord::Originator::ArelVisitorExtension#accept'
 ./spec/support/001_setup_db.rb:2:in '<top (required)>'
 ./spec/spec_helper.rb:24:in 'block in <top (required)>'
 ./spec/spec_helper.rb:24:in '<top (required)>'
```
  • Loading branch information
pocke committed Aug 14, 2024
1 parent 018cd62 commit 077d43b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/activerecord/originator/collector_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ def add_binds(...)
def value
@collector.value
end

def retryable
@collector.retryable
end

def retryable=(v)
@collector.retryable = v
end
end
end
end

0 comments on commit 077d43b

Please sign in to comment.