Created
November 9, 2011 16:49
-
-
Save ruprict/1352047 to your computer and use it in GitHub Desktop.
Loccasions 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class OccasionsController < InheritedResources::Base | |
belongs_to :event | |
actions :all, :except => [:show, :index] | |
# Need to override this from inherited_resources | |
# to scope the association chain to the current_user | |
def begin_of_association_chain | |
current_user | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment