Created
April 11, 2011 17:47
-
-
Save cowboycoded/913924 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Lock the whole app | |
ApplicationController < ActionController::Base | |
lock | |
end | |
# Lock specific controller/actions | |
ApplicationController < ActionController::Base | |
lock :actions=>["widgets#new","widgets#index"] | |
end | |
# Lock all actions in the widgets controller | |
ApplicationController < ActionController::Base | |
lock :actions=>["widgets"] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment