aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/array/prepend_and_append.rb
diff options
context:
space:
mode:
authorKir Shatrov <shatrov@me.com>2017-07-09 15:06:36 +0300
committerKir Shatrov <shatrov@me.com>2017-07-09 15:08:29 +0300
commit72950568dde05bfe8a69ce4bbf6338fdebf3062f (patch)
treef6260647b0a5521d402c3196591465a04df76265 /activesupport/lib/active_support/core_ext/array/prepend_and_append.rb
parent6f2b0eb44ab166f98f3bc4a3aa09d3b899e0fd62 (diff)
downloadrails-72950568dde05bfe8a69ce4bbf6338fdebf3062f.tar.gz
rails-72950568dde05bfe8a69ce4bbf6338fdebf3062f.tar.bz2
rails-72950568dde05bfe8a69ce4bbf6338fdebf3062f.zip
Use frozen-string-literal in ActiveSupport
Diffstat (limited to 'activesupport/lib/active_support/core_ext/array/prepend_and_append.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/array/prepend_and_append.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/array/prepend_and_append.rb b/activesupport/lib/active_support/core_ext/array/prepend_and_append.rb
index 88a34128c9..2dd1547765 100644
--- a/activesupport/lib/active_support/core_ext/array/prepend_and_append.rb
+++ b/activesupport/lib/active_support/core_ext/array/prepend_and_append.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
class Array
# The human way of thinking about adding stuff to the end of a list is with append.
alias_method :append, :push unless [].respond_to?(:append)