Created
September 5, 2011 20:28
-
-
Save iwada/1195848 to your computer and use it in GitHub Desktop.
Passing auguments to before_*
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
class XController < ApplicationController | |
before_filter :except => [:show, :..] do |c| c.check({".." => "administrator"}) | |
end | |
# ... various methods ... | |
end | |
def check(x) | |
...... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment