Module: Restful::Rails

Defined in:
lib/restful/rails.rb,
lib/restful/rails/action_controller.rb,
lib/restful/rails/active_record/configuration.rb,
lib/restful/rails/active_record/metadata_tools.rb

Defined Under Namespace

Modules: ActionController, ActiveRecord

Class Method Summary collapse

Class Method Details

.api_hostnameObject

gets the hostname for the currently running thread.



10
11
12
# File 'lib/restful/rails.rb', line 10

def self.api_hostname
  Thread.current[:api_hostname]
end

.api_hostname=(hostname) ⇒ Object

sets the hostname for this request in a threadsafe manner.



5
6
7
# File 'lib/restful/rails.rb', line 5

def self.api_hostname=(hostname)
  Thread.current[:api_hostname] = hostname
end

.toolsObject

Shortcuts past namespaces



17
18
19
# File 'lib/restful/rails.rb', line 17

def self.tools
  Restful::Rails::ActiveRecord::MetadataTools::Utils
end