Improve code style
This commit is contained in:
parent
e4aebad35a
commit
927333f4f8
41 changed files with 126 additions and 122 deletions
|
@ -11,7 +11,7 @@ class ApplicationController < ActionController::Base
|
|||
rescue_from ActiveRecord::RecordNotFound, with: :not_found
|
||||
|
||||
def raise_not_found
|
||||
raise ActionController::RoutingError.new("No route matches #{params[:unmatched_route]}")
|
||||
raise ActionController::RoutingError, "No route matches #{params[:unmatched_route]}"
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue