class GetSchwifty::Generators::CableGenerator

:nodoc

Public Instance Methods

create_cable_files() click to toggle source
# File lib/generators/get_schwifty/cable_generator.rb, line 10
def create_cable_files
  template "cables/cable.rb", File.join("app", "cables", class_path, "#{file_name}_cable.rb")

  actions.each do |action|
    template "views/cables/action.html.erb", File.join("app", "views", "cables", class_path, file_name, "_#{action}.html.erb")
  end
end
print_readme() click to toggle source