Displaying 1 result from an estimated 1 matches for "barapi".
Did you mean:
  barani
  
2006 Jun 07
0
Logger in ActionWebService::Base?
...Is there a clean way of accessing the
Rails::Configuration logger from ActionWebService::Base, or should I
stick with web_service_dispatch_mode :direct for now?
class FooController < ApplicationController
  web_service_dispatching_mode :layered
  web_service(:bar)  { BarService.new }
end
class BarApi < ActionWebService::API::Base
  api_method :qux
end
class BarService < ActionWebService::Base
  def qux
    p logger
  end
end
gives:
NameError (undefined local variable or method `logger'' for
#<BarService:0xb76a5c2c>):
...