Added Sparklines controller and dependency, see README. Created method and table...
[selectricity] / vendor / plugins / sparklines / generators / sparklines / sparklines_generator.rb
diff --git a/vendor/plugins/sparklines/generators/sparklines/sparklines_generator.rb b/vendor/plugins/sparklines/generators/sparklines/sparklines_generator.rb
new file mode 100644 (file)
index 0000000..40e8dae
--- /dev/null
@@ -0,0 +1,13 @@
+class SparklinesGenerator < Rails::Generator::Base
+
+  def manifest
+    record do |m|
+      m.directory File.join("app/controllers")
+      m.directory File.join("test/functional")
+
+      m.file "controller.rb", File.join("app/controllers/sparklines_controller.rb")
+      m.file "functional_test.rb", File.join("test/functional/sparklines_controller_test.rb")
+    end
+  end
+
+end

Benjamin Mako Hill || Want to submit a patch?