josevalim/inherited_resources — pull request #301 by prijutme4ty (2013-08-08 20:15:22+00:00)
Title: predicate methods for action type #collection_action? and #resource_action?

new controller methods #resource_action? and #collection_action? which can be used for example in conditional filters to decorate resource but not collection.

before_filter :if => :resource_action? do
@book = @book.decorate
end