Refactor user to admin and api user

This commit is contained in:
Martin Lensment 2015-02-13 16:17:06 +02:00
parent f3215680d5
commit 037cb57e00
34 changed files with 551 additions and 551 deletions

View file

@ -5,7 +5,7 @@ module Repp
resource :contacts do
desc 'Return list of contact'
get '/' do
contacts = current_api_user.registrar.contacts.page(params[:page])
contacts = current_user.registrar.contacts.page(params[:page])
@response = {
contacts: contacts,
total_pages: contacts.total_pages