From: Daniel Waite Date: 2008-04-10T06:43:43+09:00 Subject: Re: Question of self Thanks for the quick reply! David A. Black wrote: > You haven't instantiated ActiveRecord::Base in your > example, so there aren't any instances of it around... That seems so obvious now that you say that. That said, I have better-defined my goal: to conditionally create an instance-level method. Here's my plugin: http://pastie.caboo.se/178169 Note the recommend method towards the bottom. That method should only be available to objects who recommend (who are 'recommenders'). I understand class definitions are active (to use your language, I believe ;), but it feels dirty to specify a conditional outside a method. Even if I did use a conditional, I wouldn't have access to the information passed in by the including object. E.g... class Category acts_as_recommendation :recommender => true end I suppose I could break the plugin in two: acts_as_recommender and acts_as_recommendable... =/ Thoughts? -- Posted via http://www.ruby-forum.com/.