diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-01-23 11:52:38 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-01-23 11:52:38 +0000 |
commit | 13aeb797cfaa5a70bd8903d8350ea8ce3e0bb151 (patch) | |
tree | 51ae69c0c3837e531b8cef6fac455e06eea04d88 /lib/generators | |
parent | 28061fbcdb2cabbef698db2ca3a80cc428388456 (diff) | |
download | redmine-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 'lib/generators')
-rw-r--r-- | lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb b/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb index 2715a7bbe..9fafbec77 100644 --- a/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb +++ b/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb @@ -63,6 +63,6 @@ class RedminePluginModelGenerator < Rails::Generators::NamedBase end def parent_class_name - options[:parent] || "ActiveRecord::Base" + options[:parent] || "ApplicationRecord" end end |