Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix ActiveResource 3.1+ errors

  • Loading branch information...
commit 85e58190f2b374f662d45fb8f56fcb4ac0d54ec1 1 parent b4069b1
Alex Malinovich authored October 27, 2011

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  lib/highrise/base.rb
6  lib/highrise/base.rb
@@ -3,6 +3,10 @@
3 3
 module Highrise
4 4
   class Base < ActiveResource::Base
5 5
     protected
  6
+
  7
+    # Fix for ActiveResource 3.1+ errors
  8
+    self.format = :xml
  9
+
6 10
     # Dynamic finder for attributes
7 11
     def self.method_missing(method, *args)
8 12
       if method.to_s =~ /^find_(all_)?by_([_a-zA-Z]\w*)$/
@@ -16,4 +20,4 @@ def self.method_missing(method, *args)
16 20
     end
17 21
 
18 22
   end
19  
-end
  23
+end

0 notes on commit 85e5819

Please sign in to comment.
Something went wrong with that request. Please try again.