Sha256: cce7922a47d1dd9171872ef73e02b47c21520550bd942e6965832c7e2eb7e947
Contents?: true
Size: 524 Bytes
Versions: 3
Compression:
Stored size: 524 Bytes
Contents
# Needed to import datamapper and other gems require 'rubygems' require 'pathname' # Add all external dependencies for the plugin here gem 'dm-core', '~>0.9.10' require 'dm-core' # Require plugin-files require Pathname(__FILE__).dirname.expand_path / '<%= gem_name %>' / 'is' / '<%= snake_name %>.rb' # Include the plugin in Resource module DataMapper module Resource module ClassMethods include DataMapper::Is::<%= class_name %> end # module ClassMethods end # module Resource end # module DataMapper
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
namelessjon-dm-gen-0.1.0 | lib/templates/is/lib/%gem_name%.rb |
namelessjon-dm-gen-0.2.0 | lib/templates/is/lib/%gem_name%.rb |
namelessjon-dm-gen-0.2.1 | lib/templates/is/lib/%gem_name%.rb |