decidim-dev/lib/generators/decidim/dummy_generator.rb in decidim-0.2.0 vs decidim-dev/lib/generators/decidim/dummy_generator.rb in decidim-0.3.0
- old
+ new
@@ -22,10 +22,10 @@
class_option :dummy_app_path, type: :string,
desc: "The path where the dummy app will be installed"
def source_paths
[
- File.expand_path("../templates", __FILE__)
+ File.expand_path("templates", __dir__)
]
end
def cleanup
remove_directory_if_exists(dummy_app_path)