Sha256: aec93093d1d77abef7cb00e56aa13edccc3b06f41d3f260d20039ac9e09ad855
Contents?: true
Size: 599 Bytes
Versions: 7
Compression:
Stored size: 599 Bytes
Contents
require 'datamapper4rails/overlay' require 'datamapper4rails/rspec_default_values' class DatamapperRspecScaffoldGenerator < RspecScaffoldGenerator def manifest overlay_dirs.add_generator("datamapper_rspec_model") overlay_dirs.add_generator("datamapper_model") overlay_dirs.add_generator("datamapper_scaffold") overlay_dirs.add_generator("rspec_scaffold") overlay_dirs.add_generator("scaffold") super end def add_options!(opt) super opt.on("--skip-timestamps", "Don't add timestamps for this model") { |v| options[:skip_timestamps] = v } end end
Version data entries
7 entries across 7 versions & 1 rubygems