Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed May 4, 2021
1 parent 759254d commit 6217707
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/repp/v1/registrar/notifications_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def all_notifications

data = @notification.as_json(only: %i[id text attached_obj_id attached_obj_type])

default_count = 200

message = "Command completed successfully. The total notifications are #{records.count}. Returns only #{@notification.count}. Limit by default is #{limit}. To change the amount of data returned, use the parameters limit and offset in url."
message = 'Command completed successfully.'\
" Returning #{@notification.count} out of #{records.count}."\
' Use URL parameters :limit and :offset to list other messages if needed.'
render_success(data: data, message: message)
end

Expand Down

0 comments on commit 6217707

Please sign in to comment.