lib/rails/generators/channel/channel_generator.rb in actioncable-5.1.7 vs lib/rails/generators/channel/channel_generator.rb in actioncable-5.2.0.beta1
- old
+ new
@@ -1,8 +1,10 @@
+# frozen_string_literal: true
+
module Rails
module Generators
class ChannelGenerator < NamedBase
- source_root File.expand_path("../templates", __FILE__)
+ source_root File.expand_path("templates", __dir__)
argument :actions, type: :array, default: [], banner: "method method"
class_option :assets, type: :boolean