Sha256: 98ce043d404b2e77b409615df07c3027d792f0a929d3cac3a0309f3e64d915c1

Contents?: true

Size: 491 Bytes

Versions: 21

Compression:

Stored size: 491 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'dry_scaffold', 'dry_scaffold_generator')

class DscaffoldGenerator < DryScaffoldGenerator
  
  def initialize(runtime_args, runtime_options = {})
    super
    # Make Rails look for templates within generator "dry_scaffold" path
    @source_root = options[:source] || File.join(spec.path, '..', 'dry_scaffold', 'templates')
  end
  
  def usage_message
    File.read(File.join(spec.path, '..', 'dry_scaffold', 'USAGE')) rescue ''
  end
  
end

Version data entries

21 entries across 21 versions & 6 rubygems

Version Path
michel-dry_scaffold-0.3.5 generators/dscaffold/dscaffold_generator.rb