Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lfittl/orm_adapter_activeresource

Extends orm_adapter with support for ActiveResource
https://github.com/lfittl/orm_adapter_activeresource

Last synced: 21 days ago
JSON representation

Extends orm_adapter with support for ActiveResource

Awesome Lists containing this 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

[orm_adapter]: https://github.com/ianwhite/orm_adapter