Skip to content

Instantly share code, notes, and snippets.

@actsasflinn
Created November 24, 2009 19:35
Show Gist options
  • Save actsasflinn/242129 to your computer and use it in GitHub Desktop.
Save actsasflinn/242129 to your computer and use it in GitHub Desktop.
scopes[:your_composite_scope_name] = proc{ Scope.new(your.combined.scopes.here, {}) }
def self.your_composite_scope_name(*args)
scopes[:your_composite_scope_name].call(self, *args)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment