aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute/user_provided_default.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/attribute/user_provided_default.rb')
-rw-r--r--activerecord/lib/active_record/attribute/user_provided_default.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/attribute/user_provided_default.rb b/activerecord/lib/active_record/attribute/user_provided_default.rb
index a4e2c2ec85..57f8bbed76 100644
--- a/activerecord/lib/active_record/attribute/user_provided_default.rb
+++ b/activerecord/lib/active_record/attribute/user_provided_default.rb
@@ -20,6 +20,8 @@ module ActiveRecord
self.class.new(name, user_provided_value, type, original_attribute)
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 :user_provided_value