Permalink
Browse files

Revert `report_class` to being private, since it

should not be routed to.
  • Loading branch information...
1 parent d39d3fb commit dfd99f08462ec383c86f89b8b010edae7174df75 Nathan Long committed Feb 14, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/controllers/dossier/reports_controller.rb
@@ -29,12 +29,12 @@ def show
end
end
+ private
+
def report_class
Dossier.name_to_class(params[:report])
end
- private
-
def set_content_disposition!
headers["Content-Disposition"] = %[attachment;filename=#{params[:report]}-report_#{Time.now.strftime('%m-%d-%Y_%H-%M-%S')}.#{params[:format]}]
end

0 comments on commit dfd99f0

Please sign in to comment.