
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
mm-devise
will let you use devise with MongoMapper.
mm-devise
is intended for use with Rails 3+
and Devise 1.2
and above. It may work with earlier versions of devise.
This README only covers mm-devise
specifics. Make sure to read the devise README
Recently upgraded to (hopefully!) support Devise > 1.2 and MongoMapper 0.9.0.
Add devise
, mm-devise
and mongo_mapper
gems to your Gemfile (your Rails app Gemfile).
gem 'mongo_mapper', '~> 0.9.0'
# You'll want this to for better mongo driver performance
gem 'bson_ext'
gem 'devise', '~> 1.3.4'
gem 'mm-devise', '~> 1.2.0'
Use bundler to install all required gems in your Rails 3 app
bundle install
Run the devise install generator, followed by the mm-devise model generator:
rails generate devise:install
rails generate mongo_mapper:devise MODEL
The devise install generator will install an initializer
(config/inititializer/devise.rb
) which describes ALL Devise's configuration
options and you MUST take a look at it. Maker sure this line exists:
require 'devise/orm/mongo_mapper'
NOTE: The model generator should do this automatically.
To add Devise to any of your models using the generator:
rails generate mongo_mapper:devise MODEL
Example: create a User model for use with Devise
rails generate mongo_mapper:devise User
Read the README for devise at devise README
To develop on this project using TDD, requires the following setup.
Clone this project into a container folder, fx /projects
, so you have fx /projects/mm-devise
In the same container folder clone devise
from github
Example:
git clone http://github.com/kristianmandrup/mm-devise.git git clone http://github.com/plataformatec/devise.git cd mm-devise bundle install rake test
$ rake install
$ gem push pkg/mm-devis-xxxx.gem
Kristian Mandrup
bmarini - Updated to support MongoMapper 0.9 (June 2011) bhbryant - Fixed some issues and updated gem (Jan 2011) Jared Morgan - Created the dm-devise gem which was used as a template for the development of this gem. Also made suggestions for a few critical fixes and improvements in the code. Thanks :)
For mm-devise specific issues, please create an issue on GitHub at: mm-devise issues
Copyright (c) 2010 Kristian Mandrup. See LICENSE for details.
FAQs
Unknown package
We found that mm-devise demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.