You can pass the current controller to your service like this
class UserService < AWS::Base def initialize(controller) @controller = controller end
def login @controller.session[...] end end
class ServiceController < ApplicationController web_service(:user) { UserService.new(controller) } end
Kent.