Sha256: ea1c1de3cb4a341579d35e8337b6cb977d1cbceb1c10e96be5c0ceeb730628b7
Contents?: true
Size: 576 Bytes
Versions: 4
Compression:
Stored size: 576 Bytes
Contents
require 'rails/generators' module Hyper class GeneratorBase < Rails::Generators::Base class << self alias rails_inherited inherited def inherited(child) rails_inherited(child) child.class_eval do source_root File.expand_path('../templates', __FILE__) argument :components, type: :array class_option 'base-class', :default => nil # will pull in value from config setting class_option 'add-route', :default => nil class_option 'no-help', :default => nil end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems