Permalink
Browse files

Don't try to singularize the report name

  • Loading branch information...
1 parent bce5b32 commit d671bbd26f1ab8af5efce92046cfedb39d733762 Nathan Long committed Jan 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/dossier/reports_controller.rb
@@ -27,7 +27,7 @@ def show
private
def report_class
- "#{params[:report].classify}Report".constantize
+ "#{params[:report].titleize.delete(' ')}Report".constantize
end
end

0 comments on commit d671bbd

Please sign in to comment.