From: ENT8R Date: Thu, 11 Oct 2018 06:36:13 +0000 (+0200) Subject: Fix Rubocop issue X-Git-Tag: live~2846^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/caef5828f41c5eddd938918ab3a961580f71801a?ds=inline Fix Rubocop issue --- diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index 120b0d17d..552735b2a 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -288,7 +288,7 @@ class NotesController < ApplicationController rescue ArgumentError raise OSM::APIBadUserInput, "Date #{params[:to]} is in a wrong format" end - @notes = @notes.where(:created_at => from .. to) + @notes = @notes.where(:created_at => from..to) end # Find the notes we want to return