Skip to content

Commit d7b1521

Browse files
committed
Use frozen string literal in activemodel/
1 parent 83f39a3 commit d7b1521

File tree

117 files changed

+232
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+232
-0
lines changed

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Style/FrozenStringLiteralComment:
8585
EnforcedStyle: always
8686
Include:
8787
- 'activesupport/**/*'
88+
- 'activemodel/**/*'
8889
- 'activejob/**/*'
8990

9091
# Use `foo {}` not `foo{}`.

activemodel/Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "rake/testtask"
24

35
task default: :test

activemodel/activemodel.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip
24

35
Gem::Specification.new do |s|

activemodel/bin/test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
23

34
COMPONENT_ROOT = File.expand_path("..", __dir__)
45
require_relative "../../tools/test"

activemodel/lib/active_model.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
#--
24
# Copyright (c) 2004-2017 David Heinemeier Hansson
35
#

activemodel/lib/active_model/attribute_methods.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "concurrent/map"
24
require "mutex_m"
35

activemodel/lib/active_model/callbacks.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "active_support/core_ext/array/extract_options"
24

35
module ActiveModel

activemodel/lib/active_model/conversion.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module ActiveModel
24
# == Active \Model \Conversion
35
#

activemodel/lib/active_model/dirty.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "active_support/hash_with_indifferent_access"
24
require "active_support/core_ext/object/duplicable"
35

activemodel/lib/active_model/errors.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "active_support/core_ext/array/conversions"
24
require "active_support/core_ext/string/inflections"
35
require "active_support/core_ext/object/deep_dup"

0 commit comments

Comments
 (0)