]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Create an ApplicationRecord for models to inherit from
[rails.git] / app / models / user.rb
index 1095dc6eaccbf9e4466d4b80bc6764d81f76371b..6099823897473a04ab83a12e6ff90ef4fcb1e40f 100644 (file)
 #  users_home_idx                (home_tile)
 #
 
-class User < ActiveRecord::Base
+class User < ApplicationRecord
   require "xml/libxml"
 
+  self.ignored_columns = ["nearby"]
+
   has_many :traces, -> { where(:visible => true) }
   has_many :diary_entries, -> { order(:created_at => :desc) }
   has_many :diary_comments, -> { order(:created_at => :desc) }