From: Gabriel Ebner Date: Tue, 13 May 2008 12:32:43 +0000 (+0000) Subject: api06: Fix OSM::APIVersionMismatchError.render_opts X-Git-Tag: live~7601^2~337 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/e823ce2fc4b9909986987db6b1fc41eaff8c3499 api06: Fix OSM::APIVersionMismatchError.render_opts --- diff --git a/lib/osm.rb b/lib/osm.rb index 38053e12a..c038ab2d5 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -42,8 +42,8 @@ module OSM attr_reader :provided, :latest def render_opts - { :text => "Version mismatch: Provided " + ex.provided.to_s + - ", server had: " + ex.latest.to_s, :status => :bad_request } + { :text => "Version mismatch: Provided " + provided.to_s + + ", server had: " + latest.to_s, :status => :bad_request } end end