Sha256: 471783a977f29e3c16da12ed9c38c894574aec243c7e5c1c68fd6c86c7bd789f
Contents?: true
Size: 516 Bytes
Versions: 12
Compression:
Stored size: 516 Bytes
Contents
require 'generators/ahoy/base' module Ahoy module Initialize def root File.dirname(__FILE__) end def temp_dir File.join(File.dirname(__FILE__), 'tmp/') end end module Generator extend Initialize class Base < Rails::Generators::Base def self.source_root @source_root ||= File.join(File.dirname(__FILE__), 'templates') end private def question(type, &block) Ahoy::QuestionHelper.question(type, &block) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems