How can I send a parameter to a before filter?

后端 未结 5 1982
伪装坚强ぢ
伪装坚强ぢ 2021-02-08 10:55

I\'d like to create a before_filter method in my application controller like this...

def check_role(role_name)
  unless logged_in_user.has_role? role_name
    fl         


        
5条回答
提交回复
热议问题