Sha256: f952c1830d08caa5e0b06622caaeb1832fbd7a28c717dddc118a1f4369f119a4

Contents?: true

Size: 543 Bytes

Versions: 8

Compression:

Stored size: 543 Bytes

Contents

# Needed to import datamapper and other gems
require 'rubygems'
require 'pathname'

# Add all external dependencies for the plugin here
gem 'dm-core', '~> <%= DMGen::DM_VERSION %>'
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

8 entries across 8 versions & 2 rubygems

Version Path
namelessjon-dm-gen-0.2.2 lib/templates/is/lib/%gem_name%.rb
namelessjon-dm-gen-0.2.3 lib/templates/is/lib/%gem_name%.rb
namelessjon-dm-gen-0.2.4 lib/templates/is/lib/%gem_name%.rb
namelessjon-dm-gen-0.2.5 lib/templates/is/lib/%gem_name%.rb
namelessjon-dm-gen-0.3.0 lib/templates/is/lib/%gem_name%.rb
namelessjon-dm-gen-0.3.1 lib/templates/is/lib/%gem_name%.rb
namelessjon-dm-gen-0.4.0 lib/dm-gen/templates/is/lib/%gem_name%.rb
dm-gen-0.4.1 lib/dm-gen/templates/is/lib/%gem_name%.rb