sinatra/sinatra — Issue #449: Sinatra before and after methods in activerecord?
Author: jaran
Created: 2012-01-09 23:25:03+00:00
State: open

Hello,

We have an odd issue in our rails 3 upgrade where if we use the latest sinatra (1.3.2) we receive warnings that our scope :before and scope :after methods on some of our models are being overwritten.

If we roll back to our previous version of sinatra 1.2.2 the warnings go away.

Doing Model.send(:before){|r| puts r} spits out

[[//, [], [], #]]

Any insight would be appreciated