Open gkopylov opened 8 years ago
There are some false positive when class have methods that defined by define_method. I dig a little deeper and found out that interesting_nodes (https://github.com/railsbp/rails_best_practices/blob/master/lib/rails_best_practices/prepares/model_prepare.rb#L9) doesn't contain any symbols for that. It probably must have :method_add_block, but I can not clear up yet how to fetch method name in this case.
define_method
interesting_nodes
:method_add_block
Most likely this issue https://github.com/railsbp/rails_best_practices/issues/273 is bound to that too.
There are some false positive when class have methods that defined by
define_method
. I dig a little deeper and found out thatinteresting_nodes
(https://github.com/railsbp/rails_best_practices/blob/master/lib/rails_best_practices/prepares/model_prepare.rb#L9) doesn't contain any symbols for that. It probably must have:method_add_block
, but I can not clear up yet how to fetch method name in this case.Most likely this issue https://github.com/railsbp/rails_best_practices/issues/273 is bound to that too.