Fix source_root for the other two generators as well - reportable - Fork of reportable required by WarVox, from hdm/reportable.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 0df483b8bc4873c284acd75126d8c016355ebab5
(DIR) parent 8a353f324c3cd19215f75f712cf34c1cbf32e5c4
(HTM) Author: HD Moore <hd_moore@rapid7.com>
Date: Sat, 12 Jan 2013 19:17:03 -0600
Fix source_root for the other two generators as well
Diffstat:
M lib/generators/reportable_jquery_f… | 2 ++
M lib/generators/reportable_raphael_… | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/lib/generators/reportable_jquery_flot_assets/reportable_jquery_flot_assets_generator.rb b/lib/generators/reportable_jquery_flot_assets/reportable_jquery_flot_assets_generator.rb
@@ -2,6 +2,8 @@ class ReportableJqueryFlotAssetsGenerator < Rails::Generators::Base
include Rails::Generators::Actions
+ source_root File.expand_path('../templates/', __FILE__)
+
def create_jquery_flot_file
empty_directory('public/javascripts')
copy_file(
(DIR) diff --git a/lib/generators/reportable_raphael_assets/reportable_raphael_assets_generator.rb b/lib/generators/reportable_raphael_assets/reportable_raphael_assets_generator.rb
@@ -2,6 +2,8 @@ class ReportableRaphaelAssetsGenerator < Rails::Generators::Base
include Rails::Generators::Actions
+ source_root File.expand_path('../templates/', __FILE__)
+
def create_raphael_file
empty_directory('public/javascripts')
copy_file(