Sha256: e4bb2e88230f5af81450a44839e8b54084808804c155ab70c05c50e99aefb802

Contents?: true

Size: 422 Bytes

Versions: 4

Compression:

Stored size: 422 Bytes

Contents

require "rails/generators"
require_relative "../actions"

module Bulldozer
  module Generators
    class Base < Rails::Generators::Base
      include Bulldozer::Actions

      def self.default_source_root
        File.expand_path(File.join("..", "..", "..", "templates"), __dir__)
      end

      private

      def app_name
        Rails.app_class.parent_name.demodulize.underscore.dasherize
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bulldozer-1.6.3 lib/bulldozer/generators/base.rb
bulldozer-1.6.2 lib/bulldozer/generators/base.rb
bulldozer-1.6.1 lib/bulldozer/generators/base.rb
bulldozer-1.6.0 lib/bulldozer/generators/base.rb