lib/finapps/rest/user_institutions_statuses.rb in finapps-2.0.21 vs lib/finapps/rest/user_institutions_statuses.rb in finapps-2.0.22
- old
+ new
@@ -1,11 +1,9 @@
# frozen_string_literal: true
module FinApps
module REST
class UserInstitutionsStatuses < FinApps::REST::Resources # :nodoc:
- require 'erb'
-
using ObjectExtensions
using StringExtensions
def show(id)
raise MissingArgumentsError.new 'Missing argument: ui_id' if id.blank?
@@ -13,10 +11,10 @@
path = "institutions/user/#{ERB::Util.url_encode(id)}/status"
super id, path
end
def update
- path = 'institutions/user/refresh'
+ path = 'institutions/refresh'
super nil, path
end
end
end
end