Fix style issues found by new rubocop version

This commit is contained in:
Tom Hughes 2015-04-14 09:30:47 +01:00
parent 52d7cae438
commit 2af0840ff3
26 changed files with 64 additions and 59 deletions

View file

@ -4,5 +4,5 @@ class Tracetag < ActiveRecord::Base
belongs_to :trace, :foreign_key => "gpx_id"
validates :trace, :associated => true
validates :tag, :length => 1..255, :format => /\A[^\/;.,?]*\z/
validates :tag, :length => 1..255, :format => %r{\A[^/;.,?]*\z}
end