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_set/builder.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'activemodel/lib/active_model/attribute_set/builder.rb') diff --git a/activemodel/lib/active_model/attribute_set/builder.rb b/activemodel/lib/active_model/attribute_set/builder.rb index bf2d06b48a..2b1c2206ec 100644 --- a/activemodel/lib/active_model/attribute_set/builder.rb +++ b/activemodel/lib/active_model/attribute_set/builder.rb @@ -90,9 +90,6 @@ module ActiveModel end protected - - attr_reader :types, :values, :additional_types, :delegate_hash, :default_attributes - def materialize unless @materialized values.each_key { |key| self[key] } @@ -105,6 +102,7 @@ module ActiveModel end private + attr_reader :types, :values, :additional_types, :delegate_hash, :default_attributes def assign_default_value(name) type = additional_types.fetch(name, types[name]) -- cgit v1.2.3