Skip to content

Instantly share code, notes, and snippets.

@hennevogel
Created August 13, 2015 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hennevogel/d6940b12abd24c334254 to your computer and use it in GitHub Desktop.
Save hennevogel/d6940b12abd24c334254 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment