Displaying 1 result from an estimated 1 matches for "incense_crud".
2007 Nov 20
2
Plugin: create instance methods dynamically in ClassMethods?
Hi all
I have the following plugin code:
module IncenseCrud
  def self.included(base_class)
    base_class.extend(ClassMethods)
  end
  module ClassMethods
    def performs_incense_crud
      def index
        list
        return render(:action => ''list'')
      end
    end
  end
end
In init.rb I have the following:
require File.dirname(__FILE__) + ''/lib/incense_crud''
ActionController::Base.send(:include, IncenseCrud)
So far so good. In any...