##// END OF EJS Templates
Prevents "Overwriting existing method Issue.open" warning (#11545)....
Jean-Philippe Lang -
r10025:af5a814f4cf1
parent child
Show More
@@ -13,7 +13,11 module ActiveRecord
13
13
14 # Undefines private Kernel#open method to allow using `open` scopes in models.
14 # Undefines private Kernel#open method to allow using `open` scopes in models.
15 # See Defect #11545 (http://www.redmine.org/issues/11545) for details.
15 # See Defect #11545 (http://www.redmine.org/issues/11545) for details.
16 class Base ; undef open ; end
16 class Base
17 class << self
18 undef open
19 end
20 end
17 class Relation ; undef open ; end
21 class Relation ; undef open ; end
18 end
22 end
19
23
General Comments 0
You need to be logged in to leave comments. Login now