Sha256: 781911fe62b48ad3fbd649312e149ba22f327dc83b5703afb96e31372f274f8e
Contents?: true
Size: 662 Bytes
Versions: 10
Compression:
Stored size: 662 Bytes
Contents
require 'rails/generators' require 'rails/generators/named_base' module Transponder module Generators class Base < Rails::Generators::NamedBase def javascripts_path "app/assets/javascripts" end def self.source_root @_transponder_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'transponder', generator_name, 'templates')) end def self.banner "rails generate transponder:#{generator_name} #{self.arguments.map{ |a| a.usage}.join(' ')} [options]" end private def print_usage self.class.help(Thor::Base.shell.new) exit end end end end
Version data entries
10 entries across 10 versions & 1 rubygems