Sha256: 90f11a63f9e88183df169505ba02d2e6c25004f9072ba6bd81bf93dfb2faba62
Contents?: true
Size: 516 Bytes
Versions: 24
Compression:
Stored size: 516 Bytes
Contents
module Tao module Generators class ChannelGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) argument :actions, type: :array, default: [], banner: "method method" check_class_collision suffix: "Channel" def create_channel_files template "channel.coffee.erb", "app/assets/javascripts/channels/#{name.singularize}.coffee" template "channel.rb.erb", "app/channels/#{name.singularize}_channel.rb" end end end end
Version data entries
24 entries across 24 versions & 1 rubygems