标签: ruby-on-rails-5
我在基本控制器中有两个before_actions,顺序如下:
before_action :method_1 before_action :method_2
但是执行是在首先调用 method_2 时发生的,然后是 method_1 < / strong>。只想知道这是否是rails的正常行为。此外,这很重要,因为我需要 method_1 中的 method_2 中的值
method_2
method_1