lib/mongomapper/associations/proxy.rb in jnunemaker-mongomapper-0.3.2 vs lib/mongomapper/associations/proxy.rb in jnunemaker-mongomapper-0.3.3

- old
+ new

@@ -1,13 +1,9 @@ module MongoMapper module Associations - class Proxy + class Proxy < BasicObject attr_reader :owner, :association - - instance_methods.each do |m| - undef_method m unless m =~ /(^__|^nil\?$|^send$|proxy_|^object_id$)/ - end - + def initialize(owner, association) @owner = owner @association = association reset end