aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/rails/generators
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/rails/generators')
-rw-r--r--activerecord/lib/rails/generators/active_record/model/model_generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/rails/generators/active_record/model/model_generator.rb b/activerecord/lib/rails/generators/active_record/model/model_generator.rb
index 61a8d3c100..cc78fe0db5 100644
--- a/activerecord/lib/rails/generators/active_record/model/model_generator.rb
+++ b/activerecord/lib/rails/generators/active_record/model/model_generator.rb
@@ -59,7 +59,7 @@ module ActiveRecord
def application_record_file_name
@application_record_file_name ||= if mountable_engine?
- "app/models/#{namespaced_path}/application_record.rb"
+ File.join("app/models", namespaced_path, "application_record.rb")
else
"app/models/application_record.rb"
end