lib/rails/generators/chlorine/config/config_generator.rb in chlorine-0.1.5 vs lib/rails/generators/chlorine/config/config_generator.rb in chlorine-0.1.6
- old
+ new
@@ -1,9 +1,13 @@
module Chlorine
module Generators
class ConfigGenerator < Rails::Generators::Base
desc 'Creates a Chlorine configuration file at config/chlorine.yml'
+ def self.source_root
+ @_chlorine_source_root ||= File.expand_path("../templates", __FILE__)
+ end
+
def create_config_file
template 'chlorine.yml', File.join('config', 'chlorine.yml')
end
end
\ No newline at end of file