Sha256: fab7159763b68576b4157af19818cc16731389a2633ef2fdfe0a88eedbf65f67

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

module SwitchUser
  module Generators
    class InstallGenerator < Rails::Generators::Base
      TEMPLATES_PATH = File.expand_path('templates', __dir__)
      source_root File.expand_path(Engine.root, __FILE__)

      def install_initializer
        copy_file "#{TEMPLATES_PATH}/switch_user.rb", 'config/initializers/switch_user.rb'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
switch_user-1.5.4 lib/generators/switch_user/install/install_generator.rb
switch_user-1.5.3 lib/generators/switch_user/install/install_generator.rb