class Mongoid::Sessions::Options::Proxy
Public Class Methods
const_missing(name)
click to toggle source
# File lib/mongoid/sessions/options.rb, line 135 def self.const_missing(name) ::Object.const_get(name) end
new(target, options)
click to toggle source
# File lib/mongoid/sessions/options.rb, line 111 def initialize(target, options) @target = target @options = options end
Public Instance Methods
method_missing(name, *args, &block)
click to toggle source
# File lib/mongoid/sessions/options.rb, line 124 def method_missing(name, *args, &block) set_persistence_options(@target, @options) @target.send(name, *args, &block) ensure set_persistence_options(@target, nil) end
persistence_options()
click to toggle source
# File lib/mongoid/sessions/options.rb, line 116 def persistence_options @options end
respond_to?(*args)
click to toggle source
# File lib/mongoid/sessions/options.rb, line 120 def respond_to?(*args) @target.respond_to?(*args) end
send(symbol, *args)
click to toggle source
# File lib/mongoid/sessions/options.rb, line 131 def send(symbol, *args) __send__(symbol, *args) end