[Nitro] target_singular_name in refers_to.rb

George Moschovitis george.moschovitis at gmail.com
Thu Oct 20 09:46:22 EDT 2005


> Could anyone tell me where the variable target_singular_name comes from on line 8 in
> refers_to.rb? It looks like it comes from itself later on in the code but that doesn't make
> any sense...

have a look here:

lib/og/relation.rb

174:  def resolve_polymorphic_relations(klass)

target_singular_name === self[:target_singular_name]

(method_missing is used)

-g.


--
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com




More information about the Nitro-general mailing list