Sha256: 70e4c282b102f6e40da325bc0f18853e376e0680a02abceaa9dd6cb4c0bd6b73

Contents?: true

Size: 318 Bytes

Versions: 9

Compression:

Stored size: 318 Bytes

Contents

module Mongoid #:nodoc
  module Associations #:nodoc
    module Proxy #:nodoc
      def self.included(base)
        base.class_eval do
          instance_methods.each do |method|
            undef_method(method) unless method =~ /(^__|^nil\?$|^send$|^object_id$)/
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mongoid-0.10.5 lib/mongoid/associations/proxy.rb
mongoid-0.10.4 lib/mongoid/associations/proxy.rb
mongoid-0.10.3 lib/mongoid/associations/proxy.rb
mongoid-0.10.2 lib/mongoid/associations/proxy.rb
mongoid-0.10.1 lib/mongoid/associations/proxy.rb
mongoid-0.10.0 lib/mongoid/associations/proxy.rb
mongoid-0.9.12 lib/mongoid/associations/proxy.rb
mongoid-0.9.11 lib/mongoid/associations/proxy.rb
mongoid-0.9.10 lib/mongoid/associations/proxy.rb