- 73 名前:nobodyさん [2010/12/26(日) 19:45:23 ID:j7lQkci8]
- 試してないけど、protect_from_forgery(options)は
before_filter :verify_authenticity_token, option とほぼ同義なので、 protect_from_forgery :if => lambda {|controller| カスタム条件 } みたいなので出来そうな気がする。あるいは def protect_against_forgery? カスタム条件 and super end でもいいような気がする。
|

|