Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 12 lines (9 sloc) 0.213 kb
1 2 3 4 5 6 7 8 9 10 11 12
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
Something went wrong with that request. Please try again.