Skip to content

Commit

Permalink
Fix citation JSON exception
Browse files Browse the repository at this point in the history
Update method declaration. This is called from the controller/view to
render to citations as JSON. Rails used to pass an options argument but
now doesn't.

Fixes #8545
  • Loading branch information
gbp committed Jan 20, 2025
1 parent d57b209 commit be947f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/citation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def applies_to_batch_request?
citable.is_a?(InfoRequestBatch)
end

def as_json(_options)
def as_json
citable_path = case citable
when InfoRequest
request_path(citable)
Expand Down

0 comments on commit be947f0

Please sign in to comment.