Fix style issues found by new rubocop version
This commit is contained in:
parent
52d7cae438
commit
2af0840ff3
26 changed files with 64 additions and 59 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue