# File lib/merb-cache/merb_ext/controller.rb, line 20 def cache_action(action, conditions = {}) before("_cache_#{action}_before", conditions.only(:if, :unless).merge(:with => [conditions], :only => action)) after("_cache_#{action}_after", conditions.only(:if, :unless).merge(:with => [conditions], :only => action)) alias_method "_cache_#{action}_before", :_cache_before alias_method "_cache_#{action}_after", :_cache_after end