Module: RemoteResource::Base::ClassMethods
- Defined in:
- lib/remote_resource/base.rb
Instance Method Summary collapse
- #connection_options ⇒ Object
- #threaded_connection_options ⇒ Object
- #with_connection_options(connection_options = {}) ⇒ Object
Instance Method Details
#connection_options ⇒ Object
41 42 43 |
# File 'lib/remote_resource/base.rb', line 41 def RemoteResource::ConnectionOptions.new(self) end |
#threaded_connection_options ⇒ Object
45 46 47 |
# File 'lib/remote_resource/base.rb', line 45 def RequestStore.store[] ||= {} end |
#with_connection_options(connection_options = {}) ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'lib/remote_resource/base.rb', line 49 def ( = {}) begin RequestStore.store[] = .merge() yield ensure RequestStore.store[] = nil end end |