1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use private attr_reader in Arel

No longer needed workaround for Ruby 2.2 "private attribute?" warning.

Related 6d63b5e49a.
This commit is contained in:
Ryuta Kamizono 2018-09-30 15:24:17 +09:00
parent 8bc0a43a24
commit 09de7c9170
3 changed files with 3 additions and 6 deletions

View file

@ -24,8 +24,7 @@ module Arel # :nodoc: all
[left.value, right.value]
end
protected
private
attr_reader :left, :right
end
end

View file

@ -21,8 +21,7 @@ module Arel # :nodoc: all
delegate.value
end
protected
private
attr_reader :quoter, :delegate
end
end

View file

@ -104,8 +104,7 @@ module Arel # :nodoc: all
!type_caster.nil?
end
protected
private
attr_reader :type_caster
end
end