Sha256: 5bdee08a34dc0043ef78f0ec818380cd88f8add1ae0151070b3cc34e033e4b45

Contents?: true

Size: 366 Bytes

Versions: 14

Compression:

Stored size: 366 Bytes

Contents

module SwitchUser
  module Generators
    class InstallGenerator < Rails::Generators::Base
      TEMPLATES_PATH = File.expand_path('../templates', __FILE__)
      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

14 entries across 14 versions & 1 rubygems

Version Path
switch_user-1.5.0 lib/generators/switch_user/install/install_generator.rb
switch_user-1.4.0 lib/generators/switch_user/install/install_generator.rb
switch_user-1.3.1 lib/generators/switch_user/install/install_generator.rb
switch_user-1.3.0 lib/generators/switch_user/install/install_generator.rb
switch_user-1.2.1 lib/generators/switch_user/install/install_generator.rb
switch_user-1.2.0 lib/generators/switch_user/install/install_generator.rb
switch_user-1.1.0 lib/generators/switch_user/install/install_generator.rb
switch_user-1.0.2 lib/generators/switch_user/install/install_generator.rb
switch_user-1.0.1 lib/generators/switch_user/install/install_generator.rb
switch_user-1.0.0 lib/generators/switch_user/install/install_generator.rb
switch_user-0.9.5 lib/generators/switch_user/install/install_generator.rb
switch_user-0.9.4 lib/generators/switch_user/install/install_generator.rb
switch_user-0.9.3 lib/generators/switch_user/install/install_generator.rb
switch_user-0.9.2 lib/generators/switch_user/install/install_generator.rb