Sha256: 1098b1cbedd12628f7f09c80fda6688174d19145c2b4787cd2fdfca813e9748f
Contents?: true
Size: 572 Bytes
Versions: 8
Compression:
Stored size: 572 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 if Rails::VERSION::MAJOR >= 6 Rails.app_class.module_parent_name.demodulize.underscore.dasherize else Rails.app_class.parent_name.demodulize.underscore.dasherize end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems