Skip to content

misaka/devise-ripple

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

devise-ripple

An "ORM" strategy to use Devise with Riak (through the Ripple Ruby client)

So far, it is in a usable state for me, in the following environment:

Usage

  • Place ripple.rb in your project so as to get: RAILS_ROOT/lib/devise/orm/ripple.rb
  • In your RAILS_ROOT/config/initializers/devise.rb make sure to have require 'devise/orm/ripple'

Don't forget to expose appropiate 'key' and 'id' properties in your model!

Example User model

class User
  include Ripple::Document

  devise :registerable, :confirmable :database_authenticatable, :recoverable, :validatable

  property :name, String
  property :email, String, :presence => true
  property :password, String
  property :password_confirmation, String

  timestamps!
  
  def key
    email
  end

  def id
    email
  end  

end

That said, this is work in progress - please do fork and contribute!

About

An ORM strategy to use Devise with Riak

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%