Sha256: 8714b77360939d5645370e9e515cb2ae577e2d0b6b88ccbbc12830fe31e75b85

Contents?: true

Size: 430 Bytes

Versions: 11

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators'

module Bankai
  module Generators
    # :nodoc:
    class Base < Rails::Generators::Base
      include Bankai::Helper

      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

11 entries across 11 versions & 1 rubygems

Version Path
bankai-0.8.1 lib/bankai/generators/base.rb
bankai-0.8.0 lib/bankai/generators/base.rb
bankai-0.7.0 lib/bankai/generators/base.rb
bankai-0.6.0 lib/bankai/generators/base.rb
bankai-0.5.1 lib/bankai/generators/base.rb
bankai-0.5.0 lib/bankai/generators/base.rb
bankai-0.4.1 lib/bankai/generators/base.rb
bankai-0.4.0 lib/bankai/generators/base.rb
bankai-0.3.1 lib/bankai/generators/base.rb
bankai-0.3.0 lib/bankai/generators/base.rb
bankai-0.2.3 lib/bankai/generators/base.rb