aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-01-22 12:50:39 +0900
committerGitHub <noreply@github.com>2018-01-22 12:50:39 +0900
commitac024cd42c2bae884e60d83ec2705d34e8c10387 (patch)
treebd18853b950c24bb5063065fa73830b98501e9f1 /activemodel/lib
parenta19e91f0fab13cca61acdb1f33e27be2323b9786 (diff)
parent00de46acf52868d4e0d9fdee58c823c599a275a1 (diff)
downloadrails-ac024cd42c2bae884e60d83ec2705d34e8c10387.tar.gz
rails-ac024cd42c2bae884e60d83ec2705d34e8c10387.tar.bz2
rails-ac024cd42c2bae884e60d83ec2705d34e8c10387.zip
Merge pull request #31757 from composerinteralia/define-attribute
Use singular define_attribute_method
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/attributes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/attributes.rb b/activemodel/lib/active_model/attributes.rb
index 28dd24b3cd..046ae67ad7 100644
--- a/activemodel/lib/active_model/attributes.rb
+++ b/activemodel/lib/active_model/attributes.rb
@@ -23,7 +23,7 @@ module ActiveModel
end
self.attribute_types = attribute_types.merge(name => type)
define_default_attribute(name, options.fetch(:default, NO_DEFAULT_PROVIDED), type)
- define_attribute_methods(name)
+ define_attribute_method(name)
end
private