lib/osm/api.rb in osm-1.3.3 vs lib/osm/api.rb in osm-1.3.4

- old
+ new

@@ -287,10 +287,10 @@ decoded = ActiveSupport::JSON.decode(result.response.body) if osm_error = get_osm_error(decoded) fail Osm::Error, osm_error if osm_error end return decoded - rescue ActiveModel::VERSION::MAJOR.eql?(4) ? JSON::ParserError : MultiJson::ParseError + rescue ActiveModel::VERSION::MAJOR >= 4 ? JSON::ParserError : MultiJson::ParseError fail Osm::Error, result.response.body end when 'image/jpeg' return result.response.body else