aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/time
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/time
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/time')
-rw-r--r--activesupport/lib/active_support/core_ext/time/acts_like.rb1
-rw-r--r--activesupport/lib/active_support/core_ext/time/calculations.rb1
-rw-r--r--activesupport/lib/active_support/core_ext/time/compatibility.rb1
-rw-r--r--activesupport/lib/active_support/core_ext/time/conversions.rb1
-rw-r--r--activesupport/lib/active_support/core_ext/time/zones.rb1
5 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/acts_like.rb b/activesupport/lib/active_support/core_ext/time/acts_like.rb
index 08756a2dae..776456506c 100644
--- a/activesupport/lib/active_support/core_ext/time/acts_like.rb
+++ b/activesupport/lib/active_support/core_ext/time/acts_like.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
require_relative "../object/acts_like"
class Time
diff --git a/activesupport/lib/active_support/core_ext/time/calculations.rb b/activesupport/lib/active_support/core_ext/time/calculations.rb
index 9ba6bf8fa1..4cfb702674 100644
--- a/activesupport/lib/active_support/core_ext/time/calculations.rb
+++ b/activesupport/lib/active_support/core_ext/time/calculations.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
require_relative "../../duration"
require_relative "conversions"
require_relative "../../time_with_zone"
diff --git a/activesupport/lib/active_support/core_ext/time/compatibility.rb b/activesupport/lib/active_support/core_ext/time/compatibility.rb
index a554e71b74..ce69e5f478 100644
--- a/activesupport/lib/active_support/core_ext/time/compatibility.rb
+++ b/activesupport/lib/active_support/core_ext/time/compatibility.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
require_relative "../date_and_time/compatibility"
require_relative "../module/remove_method"
diff --git a/activesupport/lib/active_support/core_ext/time/conversions.rb b/activesupport/lib/active_support/core_ext/time/conversions.rb
index 0dbce99ccb..5cb0f9c980 100644
--- a/activesupport/lib/active_support/core_ext/time/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/time/conversions.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
require_relative "../../inflector/methods"
require_relative "../../values/time_zone"
diff --git a/activesupport/lib/active_support/core_ext/time/zones.rb b/activesupport/lib/active_support/core_ext/time/zones.rb
index ba8b5b73f8..3794eab3f5 100644
--- a/activesupport/lib/active_support/core_ext/time/zones.rb
+++ b/activesupport/lib/active_support/core_ext/time/zones.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
require_relative "../../time_with_zone"
require_relative "acts_like"
require_relative "../date_and_time/zones"