Sha256: 2ebbbba77a55c44ba98976e077e1921c6bcf89cf4dc1f97be95d0f225674bd78

Contents?: true

Size: 471 Bytes

Versions: 19

Compression:

Stored size: 471 Bytes

Contents

module Restful
  module Rails
    
    # sets the hostname for this request in a threadsafe manner. 
    def self.api_hostname=(hostname)
      Thread.current[:api_hostname] = hostname
    end
    
    # gets the hostname for the currently running thread. 
    def self.api_hostname
      Thread.current[:api_hostname]
    end
    
    #
    #  Shortcuts past namespaces
    #
    def self.tools
      Restful::Rails::ActiveRecord::MetadataTools::Utils
    end

  end
end

Version data entries

19 entries across 19 versions & 4 rubygems

Version Path
benjaminkrause-restful-0.2.8 lib/restful/rails.rb
moviepilot-restful-0.2.18 lib/restful/rails.rb
moviepilot-restful-0.2.19 lib/restful/rails.rb
moviepilot-restful-0.2.20 lib/restful/rails.rb
purzelrakete-restful-0.2.10 lib/restful/rails.rb
purzelrakete-restful-0.2.11 lib/restful/rails.rb
purzelrakete-restful-0.2.12 lib/restful/rails.rb
purzelrakete-restful-0.2.13 lib/restful/rails.rb
purzelrakete-restful-0.2.14 lib/restful/rails.rb
purzelrakete-restful-0.2.15 lib/restful/rails.rb
purzelrakete-restful-0.2.16 lib/restful/rails.rb
purzelrakete-restful-0.2.17 lib/restful/rails.rb
purzelrakete-restful-0.2.18 lib/restful/rails.rb
purzelrakete-restful-0.2.5 lib/restful/rails.rb
purzelrakete-restful-0.2.6 lib/restful/rails.rb
purzelrakete-restful-0.2.7 lib/restful/rails.rb
purzelrakete-restful-0.2.8 lib/restful/rails.rb
purzelrakete-restful-0.2.9 lib/restful/rails.rb
restful-0.2.20 lib/restful/rails.rb