What is the right way to achieve something like this:
class Design < ActiveRecord::Base
:as => :resourceable,
:class_name => “Resource”,
:conditions => [ ‘title = ?’, self.id ],
:dependent => :destroy
Everything here is working as expected. ONLY the conditions part is
The problem is that self.id is NOT the @my_design.id (the id of the
active record design instance), but the object_id of the instance. HOW
can I tell ActiveRecord that I want the @my_design.id ???
Thanks for any help!