lib/generators/notification_pusher/install_generator.rb in notification-pusher-1.2.5 vs lib/generators/notification_pusher/install_generator.rb in notification-pusher-1.2.6
- old
+ new
@@ -1,17 +1,15 @@
+# frozen_string_literal: true
+
require 'rails/generators'
require 'rails/generators/migration'
module NotificationPusher
+ class InstallGenerator < Rails::Generators::Base
+ source_root(File.join(File.dirname(__FILE__), '../templates/install'))
+ desc 'Install NotificationPusher'
- class InstallGenerator < Rails::Generators::Base
-
- source_root File.join File.dirname(__FILE__), '../templates/install'
- desc 'Install NotificationPusher'
-
- def create_initializer
- template 'initializer.rb', 'config/initializers/notification-pusher.rb'
- end
-
+ def create_initializer
+ template 'initializer.rb', 'config/initializers/notification-pusher.rb'
end
-
+ end
end