Skip to content

Instantly share code, notes, and snippets.

@josevalim
Created February 6, 2009 14:58
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 josevalim/59427 to your computer and use it in GitHub Desktop.
Save josevalim/59427 to your computer and use it in GitHub Desktop.
class GroupsController < InheritedResources::Base
protected
def begin_of_association_chain
@current_user # or a method that returns the @current_user
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment