Sha256: 93c228720a223585521f193f0c29f589a2c43e950518b10039585b196fe80548

Contents?: true

Size: 448 Bytes

Versions: 20

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true

module Thredded
  module Generators
    class InstallGenerator < Rails::Generators::Base
      def set_source_paths
        @source_paths = [
          File.expand_path('templates', __dir__),
          File.expand_path('../../../..', __dir__),
        ]
      end

      def copy_initializer_file
        copy_file \
          'initializer.rb',
          'config/initializers/thredded.rb'
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
thredded-1.1.0 lib/generators/thredded/install/install_generator.rb
thredded-1.0.1 lib/generators/thredded/install/install_generator.rb
thredded-1.0.0 lib/generators/thredded/install/install_generator.rb
thredded-0.16.16 lib/generators/thredded/install/install_generator.rb
thredded-0.16.15 lib/generators/thredded/install/install_generator.rb
thredded-0.16.14 lib/generators/thredded/install/install_generator.rb
thredded-0.16.13 lib/generators/thredded/install/install_generator.rb
thredded-0.16.12 lib/generators/thredded/install/install_generator.rb
thredded-0.16.11 lib/generators/thredded/install/install_generator.rb
thredded-0.16.10 lib/generators/thredded/install/install_generator.rb
thredded-0.16.9 lib/generators/thredded/install/install_generator.rb
thredded-0.16.8 lib/generators/thredded/install/install_generator.rb
thredded-0.16.7 lib/generators/thredded/install/install_generator.rb
thredded-0.16.6 lib/generators/thredded/install/install_generator.rb
thredded-0.16.5 lib/generators/thredded/install/install_generator.rb
thredded-0.16.4 lib/generators/thredded/install/install_generator.rb
thredded-0.16.3 lib/generators/thredded/install/install_generator.rb
thredded-0.16.1 lib/generators/thredded/install/install_generator.rb
thredded-0.16.0 lib/generators/thredded/install/install_generator.rb
thredded-0.15.5 lib/generators/thredded/install/install_generator.rb