lib/caboodle/kits/history/history.rb in caboodle-0.2.13 vs lib/caboodle/kits/history/history.rb in caboodle-0.2.14
- old
+ new
@@ -11,20 +11,12 @@
module Caboodle
class History < Caboodle::Kit
- config_files ["history.yml"]
+ description "A list of things you have done in the past."
- configure do
- config_path = File.expand_path(File.join(Caboodle::App.root,"config","history.yml"))
- if File.exists?(config_path)
- Caboodle::Kit.load_config(config_path)
- else
- `cp "#{File.join(File.dirname(__FILE__),"config","history.yml")}" "#{File.join(Caboodle::App.root,"config",".")}"` rescue "Could not create the sample yml file"
- puts "Please enter your history items in the file #{File.expand_path(File.join(Caboodle::App.root,"config","history.yml"))}"
- end
- end
+ config_files ["history.yml"]
menu "History", "/history" do
@title = "History"
haml :history
end
\ No newline at end of file