Sha256: 02390283a76cecc69160e3948f8e8dd1bdb16d51116132cbf9b64f0aa7e504c7

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

class LeadControllerGenerator < Rails::Generators::NamedBase
  def create_controller_files
    create_file "#{Rails.root}/controllers/#{file_name}_controller.rb", <<~RUBY
      class #{file_name.capitalize}Controller < ApplicationController
        
      end
    RUBY
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lead_management-0.1.6 lib/lead_controller_generator.rb