Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 213 Bytes
if "test" == RAILS_ENV
ActiveRecord::Base.class_eval do
class << self
alias_method :old_add_observer, :add_observer
def add_observer(o); end
end
extend NoPeepingToms
end
end