lib/rest_model/source/sender.rb in rest_model-0.2.0 vs lib/rest_model/source/sender.rb in rest_model-0.2.1
- old
+ new
@@ -1,9 +1,9 @@
class RestModel
module Source
module Sender
def to_source!(options = {})
- to_source(options.merge(fail: true))
+ to_source({fail: true}.merge(options))
end
def to_source(options = {})
source = {}
errors = {}