SHARE
TWEET

Untitled

a guest Jun 20th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ApplicationModel < ActiveRecord::Base
  2.  
  3.   self.abstract_class = true
  4.  
  5.   class ActiveRecord::Relation
  6.      
  7.     def where args
  8.       # Do your stuff here
  9.       super
  10.     end
  11.    
  12.   end
  13.  
  14. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top