Sha256: 9905e8f774a04e6499f26efbe3f7fbcc31b537f4af4f9cf7eba549ae9c152a58

Contents?: true

Size: 653 Bytes

Versions: 3

Compression:

Stored size: 653 Bytes

Contents

# frozen_string_literal: true
module Thredded
  module Generators
    class InstallGenerator < Rails::Generators::Base
      class_option :theme,
                   type:    :boolean,
                   default: false,
                   desc:    'Copy all thredded layout, views, and assets to parent application.'

      def set_source_paths
        @source_paths = [
          File.expand_path('../templates', __FILE__),
          File.expand_path('../../../../..', __FILE__),
        ]
      end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thredded-0.3.2 lib/generators/thredded/install/install_generator.rb
thredded-0.3.1 lib/generators/thredded/install/install_generator.rb
thredded-0.3.0 lib/generators/thredded/install/install_generator.rb