Improve code style
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user