aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/log_subscriber.rb2
-rw-r--r--activerecord/test/cases/arel/support/fake_record.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/log_subscriber.rb b/activerecord/lib/active_record/log_subscriber.rb
index 013c3765b2..cf884bc6da 100644
--- a/activerecord/lib/active_record/log_subscriber.rb
+++ b/activerecord/lib/active_record/log_subscriber.rb
@@ -104,7 +104,7 @@ module ActiveRecord
if source_line
if defined?(::Rails.root)
- app_root = "#{::Rails.root.to_s}/".freeze
+ app_root = "#{::Rails.root}/"
source_line = source_line.sub(app_root, "")
end
diff --git a/activerecord/test/cases/arel/support/fake_record.rb b/activerecord/test/cases/arel/support/fake_record.rb
index 8620d6fd34..559ff5d4e6 100644
--- a/activerecord/test/cases/arel/support/fake_record.rb
+++ b/activerecord/test/cases/arel/support/fake_record.rb
@@ -51,11 +51,11 @@ module FakeRecord
end
def quote_table_name(name)
- "\"#{name.to_s}\""
+ "\"#{name}\""
end
def quote_column_name(name)
- "\"#{name.to_s}\""
+ "\"#{name}\""
end
def schema_cache