Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jun 17, 2015
  1. @peterjm @rafaelfranca

    Extend threadsafety to ActiveResource::Base.

    peterjm authored rafaelfranca committed
    Currently, `ActiveResource::Base.headers` is stored in a threadlocal variable. This commit extends
    the same solution to other class attributes: `headers`, `site`, `user`, `password`, and
Commits on May 5, 2015
  1. @packagethief

    Avoid using alias_method_chain, now deprecated in Active Support

    packagethief authored
    The less than venerable `#alias_method_chain` has been deprecated in the
    latest version of Active Support. Fortunately, we only use it in two places.
    Replace with the longhand version using `alias_method` for forward
    compatibility. Not using Module#prepend in order to maintain compatibility
    with older versions of Ruby.
Commits on Sep 23, 2014
  1. @SweeD

    Merge pull request #136 from brettg/singleton-prefix-options

    SweeD authored
    Fix loss of prefix_options in Singleton#find
  2. @SweeD

    Merge pull request #126 from stateio/verify_ssl

    SweeD authored
    Verify peer by default over SSL.
Commits on Jul 21, 2014
  1. @jeremy
Commits on Jun 4, 2014
  1. @brettg
Commits on May 17, 2014
  1. @phillmv
Commits on May 2, 2014
  1. @guilleiguaran

    Merge pull request #123 from goodgravy/fix/find-first-with-no-matches

    guilleiguaran authored
    Return [], not nil, when no records are found.
Commits on Apr 22, 2014
  1. @phillmv
Commits on Apr 14, 2014
  1. @basvodde

    Initialized @proxy with nil to remove warning about access to uniniti…

    basvodde authored
    …alized instance variable
Commits on Mar 26, 2014
  1. Return [], not nil, when no records are found.

    James Brady authored
Commits on Feb 25, 2014
  1. @tylerkovacs
  2. @tylerkovacs
  3. @tylerkovacs


    tylerkovacs authored
Commits on Jan 31, 2014
  1. @guilleiguaran

    Merge pull request #90 from MorganShowman/fix/errors-from_type/use-kn…

    guilleiguaran authored
    Fix Errors#from_type use known_attributes
  2. @guilleiguaran

    Merge pull request #100 from DisruptionCorporation/has-one-for-non-si…

    guilleiguaran authored
    has_one fallback works when target is not a Singleton
Commits on Jan 29, 2014
  1. @guilleiguaran

    Merge pull request #97 from shamne/has_many

    guilleiguaran authored
    Avoid unnecessary external find to has_many association
  2. @guilleiguaran

    Merge pull request #101 from printercu/patch-1

    guilleiguaran authored
    Collection delegates all Array-instance methods to elements array
  3. @guilleiguaran

    Merge pull request #109 from DisruptionCorporation/observers-railtie-…

    guilleiguaran authored
    Instantiate observers via Railtie, and run load hooks
  4. @guilleiguaran

    Merge pull request #93 from jramos/master

    guilleiguaran authored
    Adding complete known schema attribute list to docs
Commits on Dec 28, 2013
  1. @cmarkle

    Example for collection parser is incorrect.

    cmarkle authored
    Either "self.collection_parser = PostParser" in the original example needs to be changed to refer to the subsequent PostCollection class (the path I chose) or the PostCollection class needs to be named PostParser. Bottom line is the class name of the class that inherits from ActiveResource::Collection needs to match the name specified as collection_parser.
Commits on Oct 29, 2013
  1. @ches

    Instantiate observers via Railtie, and run load hooks

    ches authored
    I spent some time figuring out how to cleanly use the
    ActiveResource observer support in a Rails app, finding surprisingly
    little documentation beyond ActiveModel::Observer itself, arriving at
    the need for this essential boilerplate in an initializer:
        ActiveResource::Base.observers = # ...
    This change packages it up as neatly as ActiveRecord observers in Rails:
        # In config/application.rb
        config.active_resource.observers = [:post_observer, :comment_observer]
    The Railtie will instantiate observers automatically, and reload them
    for each request in development just like rails-observers does for
Commits on Oct 18, 2013
  1. @MorganShowman

    Merge branch 'master' into fix/errors-from_type/use-known-attributes

    MorganShowman authored
    * master:
      Updating changelog.
      Adding `lib/activeresource.rb` to the project.
Commits on Oct 2, 2013
  1. @printercu
Commits on Oct 1, 2013
  1. @ches

    has_one fallback works when target is not a Singleton

    ches authored
    As documented:
    > if a Product class `has_one :inventory` calling `Product#inventory`
    > will generate a request on /products/:product_id/inventory.json.
    This was implemented in #15, but only implemented and tested for a true
    Singleton target. It should also work when the target model does not
    actually include Singleton, e.g. a Post has one Author.
Commits on Sep 5, 2013
  1. @SweetyHighDeployer
  2. @lunks

    Adding `lib/activeresource.rb` to the project.

    lunks authored
    This allows to remove the `require: active_resource` from the Gemfile
    and just use `gem 'activeresource'`.
Commits on Sep 4, 2013
  1. adding complete known attribute list to docs

    Justin Ramos authored
Commits on Aug 6, 2013
  1. @MorganShowman

    Fix Errors#from_type use known_attributes

    MorganShowman authored
    This commit replaces the use of #attributes.keys with #known_attributes
    in Errors#from_array and Errors#from_hash. This is done so that when
    ActiveResource grabs errors for attributes defined in the schema, but
    don't yet exist as an attribute on the object, the error gets assigned
    to the known attribute instead of the base object.
Commits on Jul 15, 2013
  1. @guilleiguaran

    Merge pull request #68 from jassa/fix-belongs_to

    guilleiguaran authored
    Ensure belongs_to finder method sends a non-nil key
  2. @guilleiguaran

    Merge pull request #61 from niedfelj/threadsafe_headers

    guilleiguaran authored
    threadsafe headers
Commits on Jun 26, 2013
  1. @sikachu

    Prepare for 4.0.0 release

    sikachu authored
    Note that I couldn't make this gem backward compatible with Rails 3.2.x
    since Rails 3.2.x hardcoded Active Resource's version. You'll need to
    upgrade to Rails 4 to be able to use this gem.
Commits on Apr 25, 2013
  1. @jassa
Commits on Apr 15, 2013
  1. @Nitrodist
Commits on Mar 11, 2013
  1. @niedfelj

    threadsafe headers

    niedfelj authored
Something went wrong with that request. Please try again.