Sha256: 4dcfcb0581a85e454290139d50aa378fc66a3b2784da0b483ad61b174221aa8a

Contents?: true

Size: 331 Bytes

Versions: 2

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true

module SteelWheel
  class ApplicationHandlerGenerator < Rails::Generators::Base
    source_root File.expand_path('templates', __dir__)

    def copy_files
      empty_directory Pathname.new('app/handlers')
      template 'handler_template.rb', 'app/handlers/application_handler.rb'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
steel_wheel-0.6.1 lib/generators/steel_wheel/application_handler/application_handler_generator.rb
steel_wheel-0.6.0 lib/generators/steel_wheel/application_handler/application_handler_generator.rb