Skip to content

Releases: rails/activeresource

v6.1.0

24 Jan 20:50
v6.1.0
0698674
Compare
Choose a tag to compare

What's Changed

  • Always return a boolean value for ActiveResource::Base#exists? by @stefanvermaas in #375
  • Support usage of invalid? and validate! methods from ActiveModel::Validations by @balvig in #379
  • Fix subclasses not inheriting headers set in the superclass by @meanphil in #383
  • Encode ID parameter for custom methods by @igor-ladkin in #399
  • [Enhancement] Allows HttpMock to ignore query params from url path if given the option by @muhammadnawzad in #395

New Contributors

Full Changelog: v6.0.0...v6.1.0

6.0.0

10 Jan 19:19
v6.0.0
1840215
Compare
Choose a tag to compare

Breaking changes

  • Drop support to Ruby < 2.6 and Rails < 6.0

What's Changed

New Contributors

Full Changelog: v5.1.1...v6.0.0

5.1.0

02 Nov 15:30
v5.1.0
326b452
Compare
Choose a tag to compare
  • Improve support of Active Resource objects inside fibers.

  • Add support to Active Model Serializers.

  • Fix error when trying to parse nil as a JSON response.

  • Fix exists? to return the right value when the response code is between 200 and 206.

  • Match the log level to the HTTP response code.

  • Add ActiveResource::Connection.logger accessors to configure a specific logger instance for the
    connection object.

  • Add ActiveResource::Base#element_url method.

  • Add Active Job serialization support with Rails 6.

  • Support lazy setting of configuration options.

  • Use UnnamedResource when resource fails to create normally.

  • Add support to Bearer Token Authorization header to connection.

4.1.0

10 Jun 19:22
c1f1e8b
Compare
Choose a tag to compare

Enhancements

  • Adds activeresource.rb so require: 'active_resource' is no longer needed
    in Gemfile. (#95, Pedro Nascimento)
  • ActiveResource::Collection delegates all instance methods for Array.
    (#101, printercu)
  • Railtie enables configuration and dev reloading of observers just like
    ActiveRecord when using Active Resource with Rails. Active Resource also now runs Active Support
    load hooks for :active_resource. (#109, Ches Martin)

Fixes

  • Improvement to thread safety of headers. (#61, niedfelj)
  • A belongs_to child with a missing parent ID returns nil for the
    association instead of making a bogus remote call. (#68, Javier Saldana)
  • A has_many association does not trigger a remote call if parent is a new
    record. (#97, Sasha Shamne)