search for: current_dropzone

Displaying 1 result from an estimated 1 matches for "current_dropzone".

2009 Aug 28
2
Association extension method
...counts do def limited_to(transaction) scope = Transaction.scoped({ :conditions => [''account.dropzone_id = ?'', proxy_owner.id], :joins => :account }) scope end end end In a controller, I''d like to write: current_dropzone.transactions.limited_to(@transaction) but, I get the error: RuntimeError: ERROR C42P01 Mmissing FROM-clause entry for table "account" P122 Fparse_relation.c L2017 RwarnAutoRange: SELECT "transactions".* FROM "transactions" INNER JOIN "ac...