No commit activity in last 3 years
No release in over 3 years
Extends orm_adapter with support for ActiveResource
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.0.7
 Project Readme

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