Sha256: 6c98c73674e7167d207ad2d824de253b4fad6237e6eaa3440d26ae3e04123b96

Contents?: true

Size: 758 Bytes

Versions: 1

Compression:

Stored size: 758 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.11'
gem 'dm-validations',   '>=0.9.11'

require 'dm-core'
require 'dm-validations'

# Require plugin-files
require Pathname(__FILE__).dirname.expand_path / 'dm-accepts_nested_attributes' / 'nested_attributes'
# monkeypatches for dm-core/associations/(many_to_one.rb and one_to_many.rb)
require Pathname(__FILE__).dirname.expand_path / 'dm-accepts_nested_attributes' / 'association_proxies'

# Include the plugin in Model
DataMapper::Model.append_extensions DataMapper::NestedAttributes::ClassMethods
DataMapper::Resource.append_inclusions DataMapper::NestedAttributes::CommonInstanceMethods

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snusnu-dm-accepts_nested_attributes-0.0.3 lib/dm-accepts_nested_attributes.rb