Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (12 sloc) 398 Bytes
require 'pathname'
require 'dm-core'
require 'dm-types'
require 'dm-timestamps'
require 'dm-validations'
require 'dm-aggregates'
require 'dm-is-remixable'
require 'dm-is-rateable'
# Require plugin-files
require Pathname(__FILE__).dirname.expand_path / 'dm-is-commentable' / 'is' / 'commentable.rb'
# Include the plugin in Resource
DataMapper::Model.append_extensions DataMapper::Is::Commentable