Sha256: 9041ca3747500386e2a46cf48468d1d1ea221ee6dd457f3870a7fda0231a628e
Contents?: true
Size: 416 Bytes
Versions: 7
Compression:
Stored size: 416 Bytes
Contents
require 'rails_generator/generators/components/model/model_generator' require 'active_record' require 'datamapper4rails/overlay' class DatamapperModelGenerator < ModelGenerator def manifest overlay_dirs.add_generator("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