lib/rails/generators/influxdb/influxdb_generator.rb in influxdb-rails-0.4.999 vs lib/rails/generators/influxdb/influxdb_generator.rb in influxdb-rails-1.0.0.beta1
- old
+ new
@@ -1,14 +1,15 @@
-require 'rails/generators'
+require "rails/generators"
-class InfluxdbGenerator < Rails::Generators::Base
+class InfluxdbGenerator < Rails::Generators::Base # rubocop:disable Style/Documentation
desc "Description:\n This creates a Rails initializer for InfluxDB::Rails."
- source_root File.expand_path('../templates', __FILE__)
+ source_root File.expand_path("templates", __dir__)
def copy_initializer_file
- template "initializer.rb", "config/initializers/influxdb-rails.rb"
+ template "initializer.rb", "config/initializers/influxdb_rails.rb"
end
def install
+ # nothing to do here
end
end