lib/saorin/response.rb in saorin-0.3.2 vs lib/saorin/response.rb in saorin-0.4.0

- old
+ new

@@ -40,10 +40,10 @@ h['id'] = id h end def to_json(*args) - options = args.last.is_a?(::Hash) ? args.pop : {} + options = Saorin::Utility.extract_options!(args) MultiJson.dump to_h, options end def self.from_hash(hash) raise Saorin::InvalidResponse unless hash.is_a?(::Hash)