diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-12-19 19:10:49 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-12-23 23:48:54 +0900 |
commit | 21e5fd4a2a1c162ad33708d3e01b1fda165f204d (patch) | |
tree | 1bd755cd789faccd608e1e72a092723b56435466 /railties | |
parent | be984f02db145c0091c265babd331127c3b408d9 (diff) | |
download | rails-21e5fd4a2a1c162ad33708d3e01b1fda165f204d.tar.gz rails-21e5fd4a2a1c162ad33708d3e01b1fda165f204d.tar.bz2 rails-21e5fd4a2a1c162ad33708d3e01b1fda165f204d.zip |
Describe what we are protecting
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/named_base.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/resource_helpers.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/named_base.rb b/railties/lib/rails/generators/named_base.rb index 70f63dc672..7b9095c7b1 100644 --- a/railties/lib/rails/generators/named_base.rb +++ b/railties/lib/rails/generators/named_base.rb @@ -32,6 +32,8 @@ module Rails end end + # TODO Change this to private once we've dropped Ruby 2.2 support. + # Workaround for Ruby 2.2 "private attribute?" warning. protected attr_reader :file_name diff --git a/railties/lib/rails/generators/resource_helpers.rb b/railties/lib/rails/generators/resource_helpers.rb index a28977319a..bbfda09bb4 100644 --- a/railties/lib/rails/generators/resource_helpers.rb +++ b/railties/lib/rails/generators/resource_helpers.rb @@ -23,6 +23,8 @@ module Rails assign_controller_names!(controller_name.pluralize) end + # TODO Change this to private once we've dropped Ruby 2.2 support. + # Workaround for Ruby 2.2 "private attribute?" warning. protected attr_reader :controller_name, :controller_file_name |