From 3579876931381fd6abff99bd6e739169a8fcb489 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Mon, 26 Feb 2018 06:14:17 +0900 Subject: Active Model: Use private attr_reader Follow up of 6d63b5e49a399fe246afcebad45c3c962de268fa. --- activemodel/lib/active_model/attribute/user_provided_default.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'activemodel/lib/active_model/attribute') diff --git a/activemodel/lib/active_model/attribute/user_provided_default.rb b/activemodel/lib/active_model/attribute/user_provided_default.rb index a5dc6188d2..9dc16e882d 100644 --- a/activemodel/lib/active_model/attribute/user_provided_default.rb +++ b/activemodel/lib/active_model/attribute/user_provided_default.rb @@ -44,8 +44,7 @@ module ActiveModel end end - protected - + private attr_reader :user_provided_value end end -- cgit v1.2.3