Sha256: e46ba8868ef1c6a478baae0c055bfe41cb6bf7fe0c71f3a23452a0bd3591ac1f
Contents?: true
Size: 482 Bytes
Versions: 7
Compression:
Stored size: 482 Bytes
Contents
require 'rails_generator/generators/components/model/model_generator' require 'active_record' require 'datamapper4rails/overlay' class DatamapperRspecModelGenerator < RspecModelGenerator def manifest overlay_dirs.add_generator("datamapper_model") overlay_dirs.add_generator("rspec_model") 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