Sha256: d525bbefe4b2b8c21146dac9cc013c2e0550366b8b750aada2bb298d31a6962a
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
# frozen_string_literal: true require "rails/generators" module P2pStreamsChannel class ControllerGenerator < ::Rails::Generators::NamedBase source_root File.expand_path("../templates", __FILE__) def p2p_controller_js copy_file "controller.js", "app/javascript/controllers/#{name}_controller.js" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
p2p_streams_channel-0.0.3 | lib/rails/generators/p2p_streams_channel/controller_generator.rb |
p2p_streams_channel-0.0.2 | lib/rails/generators/p2p_streams_channel/controller_generator.rb |