lib/abstract_controller/callbacks.rb in actionpack-4.0.0 vs lib/abstract_controller/callbacks.rb in actionpack-4.0.1.rc1
- old
+ new
@@ -34,10 +34,10 @@
end
def _normalize_callback_option(options, from, to) # :nodoc:
if from = options[from]
from = Array(from).map {|o| "action_name == '#{o}'"}.join(" || ")
- options[to] = Array(options[to]) << from
+ options[to] = Array(options[to]).unshift(from)
end
end
# Skip before, after, and around action callbacks matching any of the names
# Aliased as skip_filter.