Class MongoMapper::Plugins::Associations::Proxy
In: lib/mongo_mapper/plugins/associations/proxy.rb
Parent: Object

Methods

as_json   blank?   find_target   flatten_deeper   inspect   load_target   loaded   loaded?   new   nil?   present?   reload   replace   reset   respond_to?   send   to_json  

External Aliases

respond_to? -> proxy_respond_to?
extend -> proxy_extend
target -> proxy_target
association -> proxy_association

Attributes

association  [R] 
proxy_owner  [R] 
target  [R] 

Public Class methods

Public Instance methods

:nocov:

:nocov:

Active support in rails 3 beta 4 can override to_json after this is loaded, at least when run in mongomapper tests. The implementation was changed in master some time after this, so not sure whether this is still a problem.

In rails 2, this isn‘t a problem however it also solves an issue where to_json isn‘t forwarded because it supports to_json itself

Protected Instance methods

[Validate]