Sprinkle frozen string literal & Indentation Fix (#150)
* Avoid extra string alocation as join will always return string * Fix indentation * Sprinkle frozen string literal true
This commit is contained in:
committed by
Sojan Jose
parent
59e9fbd336
commit
a1452d7d89
@@ -58,7 +58,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
def render_record_invalid(exception)
|
||||
render json: {
|
||||
message: "#{exception.record.errors.full_messages.join(", ")}"
|
||||
message: exception.record.errors.full_messages.join(", ")
|
||||
}, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user