Sha256: 6e51a080696db7cda0a6e441fb31813e19ef924b38812de0cfd9b35f1a794c44
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
if defined?(Merb::Plugins) require 'rubygems' require 'merb_datamapper/version' gem 'dm-core', DataMapper::MerbDataMapper::VERSION require 'dm-core' if File.file?(Merb.dir_for(:config) / "database.yml") require File.join(File.dirname(__FILE__) / "merb" / "orms" / "data_mapper" / "connection") Merb::Orms::DataMapper.connect Merb::Orms::DataMapper.register_session_type else Merb.logger.info "No database.yml file found in #{Merb.dir_for(:config)}, assuming database connection(s) established in the environment file in #{Merb.dir_for(:config)}/environments" end require File.join(File.dirname(__FILE__) / "merb" / "orms" / "data_mapper" / "resource") Merb::Plugins.add_rakefiles "merb_datamapper" / "merbtasks" Merb.add_generators File.join(File.dirname(__FILE__), 'generators', 'data_mapper_model') Merb.add_generators File.join(File.dirname(__FILE__), 'generators', 'data_mapper_resource_controller') Merb.add_generators File.join(File.dirname(__FILE__), 'generators', 'data_mapper_migration') end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
merb_datamapper-0.9.4 | lib/merb_datamapper.rb |
merb_datamapper-0.9.5 | lib/merb_datamapper.rb |