Rails多个skip_before_action

时间:2016-07-17 14:51:42

标签: ruby-on-rails ruby ruby-on-rails-4

我想做多个skip_before_action

尝试了以下选项:

  skip_before_action :user_logged_in, :user_is_provider, only: [:impressum, :agb, :help, :privacy]

但是

:user_is_provider

功能尚未被调用。该函数位于application_controller.rb

由于

1 个答案:

答案 0 :(得分:2)

skip_before_action :user_logged_in
skip_before_action :user_is_provider, only: [:impressum, :agb, :help, :privacy]