Repository is archived
No commit activity in last 3 years
No release in over 3 years
Extend your ActiveResource model's connections
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

~> 1.7
~> 10.4
~> 3.1
~> 1.2

Runtime

>= 4.0.0, ~> 4.0
>= 2.0.0, ~> 2.0
 Project Readme
ActiveResource Connections
==========================

Allow you to extend ActiveResource connections with your own customisations.
Please see lib/active_resource/connections/retryable.rb for reference.

Installation
============

Install as Gem:

  gem install activeresource_connections

Or, add to your Gemfile:

  # Gemfile
  gem "activeresource_connections"


Examples
========

  # Gemfile
  gem 'retryable'

  # app/models/user.rb
  class User < ActiveResource::Base
    self.connection_class = ActiveResource::Connections::Retryable
  end

  # app/models/manager.rb
  class Manager < User
  end

  p Manager.connection # => #<ActiveResource::Connections::Retryable ...>


Footnote
========

Copyright (c) 2012 Black Square Media Ltd, released under the MIT license