lib/aptible/rails/controller.rb in aptible-rails-0.1.12 vs lib/aptible/rails/controller.rb in aptible-rails-0.2.0
- old
+ new
@@ -10,14 +10,14 @@
helper_method :auth, :api, :current_aptible_user,
:current_organization
end
def auth
- @auth ||= Aptible::Auth.new(token: service_token).get
+ @auth ||= Aptible::Auth::Agent.new(token: service_token).get
end
def api
- @api ||= Aptible::Api.new(token: service_token).get
+ @api ||= Aptible::Api::Agent.new(token: service_token).get
end
def current_aptible_user
@current_user ||= auth.find_by_url(aptible_subject)
rescue