aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/inheritance.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-10-29 09:42:24 -0600
committerSean Griffin <sean@seantheprogrammer.com>2015-10-29 09:42:24 -0600
commitb8832c1b5454c0ea3deeeefe598d24e887ca574f (patch)
tree2d71650585f0e9d87895671432ed8c409392be29 /activerecord/lib/active_record/inheritance.rb
parent42b9f3eb5226b4c7b59a4cbc4ff0e81a420aeb45 (diff)
downloadrails-b8832c1b5454c0ea3deeeefe598d24e887ca574f.tar.gz
rails-b8832c1b5454c0ea3deeeefe598d24e887ca574f.tar.bz2
rails-b8832c1b5454c0ea3deeeefe598d24e887ca574f.zip
Fix a stylistic nitpick in #19501
We don't need to use `String#+` or create all the intermediate strings to break a string into multiple lines. We can just write a c-style multiline string literal. This is by no means a hotpath, but this is clearer to me anyway.
Diffstat (limited to 'activerecord/lib/active_record/inheritance.rb')
-rw-r--r--activerecord/lib/active_record/inheritance.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/inheritance.rb b/activerecord/lib/active_record/inheritance.rb
index 741229f9c0..589c70db0d 100644
--- a/activerecord/lib/active_record/inheritance.rb
+++ b/activerecord/lib/active_record/inheritance.rb
@@ -175,9 +175,9 @@ module ActiveRecord
end
rescue NameError
raise SubclassNotFound,
- "The single-table inheritance mechanism failed to locate the subclass: '#{type_name}'. " +
- "This error is raised because the column '#{inheritance_column}' is reserved for storing the class in case of inheritance. " +
- "Please rename this column if you didn't intend it to be used for storing the inheritance class " +
+ "The single-table inheritance mechanism failed to locate the subclass: '#{type_name}'. " \
+ "This error is raised because the column '#{inheritance_column}' is reserved for storing the class in case of inheritance. " \
+ "Please rename this column if you didn't intend it to be used for storing the inheritance class " \
"or overwrite #{name}.inheritance_column to use another column for that information."
end
unless subclass == self || descendants.include?(subclass)