You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The callsite code in AppNotifications looks for the first line matching Rails.root in the caller array. This works great for all application-local code and templates, but when the AR query originates in a gem it's entirely passed over and you end up with #{Rails.root}/bin/rails as the callsite. Right now I'm seeing this behaviour when working on a spree app, but I assume there are other gems out there providing AR-interacting views and controllers that would also have a problem with this.
There may not be a perfect regexp(s) that can deal with this, but allowing a custom set of regexps or a block that is used for the select on the caller array is desirable. This would at least allow some customisation for these use cases.
The text was updated successfully, but these errors were encountered:
The callsite code in AppNotifications looks for the first line matching Rails.root in the caller array. This works great for all application-local code and templates, but when the AR query originates in a gem it's entirely passed over and you end up with #{Rails.root}/bin/rails as the callsite. Right now I'm seeing this behaviour when working on a spree app, but I assume there are other gems out there providing AR-interacting views and controllers that would also have a problem with this.
There may not be a perfect regexp(s) that can deal with this, but allowing a custom set of regexps or a block that is used for the select on the caller array is desirable. This would at least allow some customisation for these use cases.
The text was updated successfully, but these errors were encountered: