Skip to content

Instantly share code, notes, and snippets.

@vivekprahlad
Created November 4, 2011 18:42
Show Gist options
  • Save vivekprahlad/1340128 to your computer and use it in GitHub Desktop.
Save vivekprahlad/1340128 to your computer and use it in GitHub Desktop.
class OrdersController < ApplicationController
before_filter :authenticate_user!, :ensure_tenant_setup!
protected
def ensure_tenant_setup!
Neo4j.threadlocal_ref_node = current_user.tenant
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment