Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lfittl/orm_adapter_activeresource
- Owner: lfittl
- Created: 2012-05-07T22:41:50.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-05-07T22:49:15.000Z (over 12 years ago)
- Last Synced: 2024-12-03T04:08:36.717Z (23 days ago)
- Language: Ruby
- Size: 95.7 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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