Closed NGMarmaduke closed 5 years ago
Currently the check_missing_methods! on active_record_queries.rb looks like:
check_missing_methods!
active_record_queries.rb
https://github.com/gocardless/statesman/blob/b7e1a9c92884d90def039a22176a2da771c04e20/lib/statesman/adapters/active_record_queries.rb#L5-L7
This issue line being:
reject { |_method| base.respond_to?(:method) }
All ruby classes will respond to the method method, and therefore this predicate will never return false. This results in the guard always returning early and therefore the subsequent error is never raised.
method
Presumable the check should look something like:
reject { |method| base.respond_to?(method) }
I'm happy to PR when I have time
Thanks for raising this issue. https://github.com/gocardless/statesman/pull/364 should solve this. I'll poke the authors today and check when they'll finish it.
Currently the
check_missing_methods!
onactive_record_queries.rb
looks like:https://github.com/gocardless/statesman/blob/b7e1a9c92884d90def039a22176a2da771c04e20/lib/statesman/adapters/active_record_queries.rb#L5-L7
This issue line being:
All ruby classes will respond to the
method
method, and therefore this predicate will never return false. This results in the guard always returning early and therefore the subsequent error is never raised.Presumable the check should look something like:
I'm happy to PR when I have time