Displaying 1 result from an estimated 1 matches for "article_assign".
2007 Feb 05
0
Check method exists for plugin
I''m writing a plugin that requires that an implementing Model has a
method called ''title'' defined.
For my init.rb, I have:
    require ''article_assignable''
    ActiveRecord::Base.send(:include, David::ArticleAssignable)
Then in article_assignable.rb:
    module David
      module ArticleAssignable
        def self.included(base)
          base.extend Plugin
        end
        module Plugin
          def article_assignable...