Skip to content

Commit

Permalink
[api][webui] Monkeypatching AR to fix openSUSE#992
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel committed Aug 17, 2015
1 parent f01e2a5 commit 0cfb993
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/api/config/initializers/01_monkeypatches.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module ActiveRecord
module Scoping
class ScopeRegistry # :nodoc:

def self.value_for(scope_type, variable_name)
instance.value_for(scope_type, variable_name)
end

def self.set_value_for(scope_type, variable_name, value)
instance.set_value_for(scope_type, variable_name, value)
end

end
end
end

0 comments on commit 0cfb993

Please sign in to comment.