This is the more typical Rails idiom - it's how ActiveRecord generates all kinds of things, from dynamic finders (find_all_by_foo) to attribute methods.
--Matt Jones On May 31, 7:58 pm, Brian <[email protected]> wrote: > On May 31, 7:34 pm, Brian <[email protected]> wrote: > > > I'm writing a role-based security plugin for personal use in my apps. > > The plugin will attach some helper methods to my models automatically > > (when I run my new class method 'acts_as_a_foo'). Some of these... > > The other thought I had was that I could override missing_method and > delay adding the new methods until they are actually used for the > first time. This definitely avoids the timing errors, but seems a > little strange. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

