if (hashParams.background) {
params.background = hashParams.background;
}
-
if (hashParams.comment) {
params.comment = hashParams.comment;
}
+ if (hashParams.offset) {
+ params.offset = hashParams.offset;
+ }
<% if params[:gpx] -%>
params.gpx = '<%= trace_data_url(params[:gpx], :format => :xml) %>';