]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/note_comment.rb
Fix new rubocop warnings
[rails.git] / app / models / note_comment.rb
index 448703ffa5f8d38471a7ecc2767f4ca41771af7b..eed917eee3c868d2bf6ec19deb258c4481bc54f7 100644 (file)
@@ -23,9 +23,9 @@
 #  note_comments_note_id_fkey    (note_id => notes.id)
 #
 
-class NoteComment < ActiveRecord::Base
-  belongs_to :note, :foreign_key => :note_id, :touch => true
-  belongs_to :author, :class_name => "User", :foreign_key => :author_id
+class NoteComment < ApplicationRecord
+  belongs_to :note, :touch => true
+  belongs_to :author, :class_name => "User"
 
   validates :id, :uniqueness => true, :presence => { :on => :update },
                  :numericality => { :on => :update, :only_integer => true }