Can I change the order for before_filter’s between application.rb
another filters from another controller that inherits from
For example I have 3 before_filters in application.rb, and these seem to
handled before the before_filter that I have in another specific
that inherits from ApplicationController (in this particular case the
specific controller is part of a plugin, hence is in the vendor
I really want the plugin vendors controller before_filter to fire before
ones in the application.rb.
from the docs:
"Using before_filter and after_filter appends the specified filters to
the existing chain. That’s usually just fine, but some times you care
more about the order in which the filters are executed. When that’s
the case, you can use prepend_before_filter and prepend_after_filter.
Filters added by these methods will be put at the beginning of their
respective chain and executed before the rest. For example: "