Sha256: d1c10587fb3f18d1c187650f437ccb91c6d8796727c09a846eca4636c9aaaa21
Contents?: true
Size: 552 Bytes
Versions: 8
Compression:
Stored size: 552 Bytes
Contents
module Ucasy class InstallGenerator < Rails::Generators::Base source_root File.expand_path("templates", __dir__) desc "Generates a application use case base." def create_use_case_base copy_file "use_case_base.rb.tt", use_case_path end private def use_case_path Rails.root.join("app/#{generator_folder_name}/use_case_base.rb") end def generator_folder_name return Ucasy::GENERATOR_FOLDER_NAME if defined?(Ucasy::GENERATOR_FOLDER_NAME) Ucasy::DEFAULT_GENERATOR_FOLDER_NAME end end end
Version data entries
8 entries across 8 versions & 1 rubygems