class Mongoid::Sessions::Options::Proxy
Public Class Methods
const_missing(name)
click to toggle source
# File lib/mongoid/sessions/options.rb, line 173 def self.const_missing(name) ::Object.const_get(name) end
new(target, options)
click to toggle source
# File lib/mongoid/sessions/options.rb, line 145 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 158 def method_missing(name, *args, &block) set_persistence_options(@target, @options) ret = @target.send(name, *args, &block) if Mongoid::Criteria == ret.class ret.with @options end ret ensure set_persistence_options(@target, nil) end
persistence_options()
click to toggle source
# File lib/mongoid/sessions/options.rb, line 150 def persistence_options @options end
respond_to?(*args)
click to toggle source
# File lib/mongoid/sessions/options.rb, line 154 def respond_to?(*args) @target.respond_to?(*args) end
send(symbol, *args)
click to toggle source
# File lib/mongoid/sessions/options.rb, line 169 def send(symbol, *args) __send__(symbol, *args) end