diff options
author | Matthew Draper <matthew@trebex.net> | 2017-07-09 22:58:40 +0930 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-09 22:58:40 +0930 |
commit | 8d98bb0cc6e2baf1694971ae2bdf19e8b8bcdce5 (patch) | |
tree | 73eea0eedbeb925587a24b7e870082ccb6e66f9f /activesupport/lib/active_support/core_ext/date | |
parent | 650ea5e5cf50d8a7242499463cf1762922d330a8 (diff) | |
parent | 72950568dde05bfe8a69ce4bbf6338fdebf3062f (diff) | |
download | rails-8d98bb0cc6e2baf1694971ae2bdf19e8b8bcdce5.tar.gz rails-8d98bb0cc6e2baf1694971ae2bdf19e8b8bcdce5.tar.bz2 rails-8d98bb0cc6e2baf1694971ae2bdf19e8b8bcdce5.zip |
Merge pull request #29728 from kirs/frozen-activesupport
Use frozen-string-literal in ActiveSupport
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date')
5 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/acts_like.rb b/activesupport/lib/active_support/core_ext/date/acts_like.rb index dfea3e3f09..c8ab7b5241 100644 --- a/activesupport/lib/active_support/core_ext/date/acts_like.rb +++ b/activesupport/lib/active_support/core_ext/date/acts_like.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../object/acts_like" class Date diff --git a/activesupport/lib/active_support/core_ext/date/blank.rb b/activesupport/lib/active_support/core_ext/date/blank.rb index edd2847126..a28e726902 100644 --- a/activesupport/lib/active_support/core_ext/date/blank.rb +++ b/activesupport/lib/active_support/core_ext/date/blank.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "date" class Date #:nodoc: diff --git a/activesupport/lib/active_support/core_ext/date/calculations.rb b/activesupport/lib/active_support/core_ext/date/calculations.rb index 24d3721d48..d0ac71210a 100644 --- a/activesupport/lib/active_support/core_ext/date/calculations.rb +++ b/activesupport/lib/active_support/core_ext/date/calculations.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "date" require_relative "../../duration" require_relative "../object/acts_like" diff --git a/activesupport/lib/active_support/core_ext/date/conversions.rb b/activesupport/lib/active_support/core_ext/date/conversions.rb index 7971d39fb7..6c493dc2c8 100644 --- a/activesupport/lib/active_support/core_ext/date/conversions.rb +++ b/activesupport/lib/active_support/core_ext/date/conversions.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "date" require_relative "../../inflector/methods" require_relative "zones" diff --git a/activesupport/lib/active_support/core_ext/date/zones.rb b/activesupport/lib/active_support/core_ext/date/zones.rb index d94c7bcfc2..f9bb6f733b 100644 --- a/activesupport/lib/active_support/core_ext/date/zones.rb +++ b/activesupport/lib/active_support/core_ext/date/zones.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "date" require_relative "../date_and_time/zones" |