Skip to content

Support Dynamoid ORM and generators for Devise

License

Notifications You must be signed in to change notification settings

say8425/devise-dynamoid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Devise Dynamoid

Devise only support couple of ORM, ActiveRecord (default) and Mongoid. This gem make support Dynamoid ORM for Devise.

Install Devise Gem

First of all, you should install Devise gem and run devise install generator command. Please read Getting Started section from Devise.

Installation

Add 'devise-dynamoid' to your application's Gemfile:

gem 'devise'
gem 'devise-dynamoid'

Execute bundler:

$ bundle

Load and configure dynamoid for your devise ORM. You can find this ORM configuration at config/initializers/devise.rb:35

# ==> ORM configuration
# Load and configure the ORM. Supports :active_record (default) and
# :mongoid (bson_ext recommended) by default. Other ORMs may be
# available as additional gems.
require 'devise/orm/dynamoid'

Usage

Run devise model generator.

$ rails generate dynamoid:devise MODEL

Contributing

Bug reports and pull requests are welcome.

License

The gem is available as open source under the terms of the MIT License.