spec/fixtures/controllers.rb in action_controller_tweaks-0.3.1 vs spec/fixtures/controllers.rb in action_controller_tweaks-0.3.2

- old
+ new

@@ -1,16 +1,18 @@ class TestController < ActionController::Base include Rails.application.routes.url_helpers - def render(*attributes); end + def render(*_attributes); end end class PostsController < TestController include ActionControllerTweaks def index - if params[:no_cache] - set_no_cache - end + head(204) + + set_no_cache if params[:no_cache] end +end -end \ No newline at end of file +class NotController +end