Skip to content

lfittl/orm_adapter_activeresource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

orm_adapter_activeresource

Extends orm_adapter to support ActiveResource.

This enables you to use devise and other libraries based on orm_adapter with your ActiveResource models.

Installation

gem install orm_adapter_activeresource

or add this to your Gemfile:

gem 'orm_adapter_activeresource'

This will automatically load the orm_adapter methods into all ActiveResource models.

Testing

To run the integration tests (launches a full ActiveResource Rails-based server)

rake spec

Usage with devise

Sample model for devise:

class User < ActiveResource::Base
  self.site = # ...

  # Devise compatibility
  def self.before_validation(*args); end
  def authenticatable_salt; end

  devise :database_authenticatable, :recoverable
end

About

Extends orm_adapter with support for ActiveResource

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages