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