module Mephisto module Plugins class Feedback < Mephisto::Plugin author 'technoweenie' version '0.2' notes "Create arbitrary feedback forms with Mephisto. See the README." option :no_feedback_msg, "You don't seem to have any feedback." option :destroy_msg, "Feedback deleted." option :clear_msg, "All feedback has been cleared." admin_controller 'Feedback' add_route 'send_feedback', :controller => 'admin/feedback', :action => 'create', :conditions => { :method => :post } class Schema < ActiveRecord::Migration def self.install create_table :feedbacks do |t| t.column :site_id, :integer t.column :name, :string t.column :email, :string t.column :body, :text t.column :key, :string t.column :created_at, :datetime end end def self.uninstall drop_table :feedbacks end end end end end