-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix exception super #2276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix exception super #2276
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,12 +7,12 @@ class Base < StandardError | |
BASE_ATTRIBUTES_KEY = 'grape.errors.attributes' | ||
FALLBACK_LOCALE = :en | ||
|
||
attr_reader :status, :message, :headers | ||
attr_reader :status, :headers | ||
|
||
def initialize(status: nil, message: nil, headers: nil, **_options) | ||
@status = status | ||
@message = message | ||
@headers = headers | ||
super(message) | ||
ericproulx marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be two lines above :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it matter? If you think it does, PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
end | ||
|
||
def [](index) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,6 @@ def initialize(params:, message: nil, **args) | |
def as_json(*_args) | ||
to_s | ||
end | ||
|
||
def to_s | ||
message | ||
end | ||
end | ||
end | ||
end |
Uh oh!
There was an error while loading. Please reload this page.