summaryrefslogtreecommitdiffstats
path: root/app/models/news.rb
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-01-23 11:52:38 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-01-23 11:52:38 +0000
commit13aeb797cfaa5a70bd8903d8350ea8ce3e0bb151 (patch)
tree51ae69c0c3837e531b8cef6fac455e06eea04d88 /app/models/news.rb
parent28061fbcdb2cabbef698db2ca3a80cc428388456 (diff)
downloadredmine-13aeb797cfaa5a70bd8903d8350ea8ce3e0bb151.tar.gz
redmine-13aeb797cfaa5a70bd8903d8350ea8ce3e0bb151.zip
Use ApplicationRecord instead of ActiveRecord::Base (#38975).
Patch by Minoru Maeda (@maeda-m). git-svn-id: https://svn.redmine.org/redmine/trunk@22619 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/news.rb')
-rw-r--r--app/models/news.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/news.rb b/app/models/news.rb
index 8860d6c97..cbd7023ba 100644
--- a/app/models/news.rb
+++ b/app/models/news.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-class News < ActiveRecord::Base
+class News < ApplicationRecord
include Redmine::SafeAttributes
belongs_to :project
belongs_to :author, :class_name => 'User'