0.0
No commit activity in last 3 years
No release in over 3 years
DataMapper loader for MonkeyMailer
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.2.0, ~> 1.2
>= 1.2.0, ~> 1.2
>= 2.12.0, ~> 2
>= 0.1.4, ~> 0.1

Runtime

>= 1.2.0, ~> 1.2
>= 0.0.4, ~> 0.0
 Project Readme

Build Status

mm-data_mapper

Description

mm-data_mapper is a plugin for MonkeyMailer which allows using a DataMapper model as the datasource.
It requires that you configure your database settings inside MonkeyMailer.configuration.loader_options using DataMapper's configuration options:

MonkeyMailer.configure do |config|
  config.loader = MonkeyMailer::Loaders::DataMapper
  config.loader_options = {
    :default => {
      :adapter => 'mysql',
      :user => 'monkey-mailer',
      :password => 'monkey_mailer_dev',
      :database => 'monkey_mailer_test'
    }
  }
end

Note that you will need to have the adapter gem installed in your system (dm-mysql-adapter in this case)

License

See the UNLICENSE file included with this gem distribution.