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

- old
+ new

@@ -42,10 +42,10 @@ h['id'] = @id unless notify? 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.symbolized_keys(hash) hash.each do |k, v|