aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Nyh <henrik@nyh.se>2015-01-15 20:02:37 +0100
committerHenrik Nyh <henrik@nyh.se>2015-01-15 20:06:18 +0100
commit4111de4e152d678de30afb7f87dcec9d65ab0756 (patch)
tree5555bc882567ec8f111127d2887d76e7173a4cfe
parent39f0ea1458c54e29431dbfa6332358285f44664d (diff)
downloadrails-4111de4e152d678de30afb7f87dcec9d65ab0756.tar.gz
rails-4111de4e152d678de30afb7f87dcec9d65ab0756.tar.bz2
rails-4111de4e152d678de30afb7f87dcec9d65ab0756.zip
Remove incorrect comment in ActiveRecord::Type::Value
Says it's only used for the schema, but they are in fact used for other things. Integer verifies against the limit during casting, and Decimal uses precision during casting. It may be true that scale is only used for the schema.
-rw-r--r--activerecord/lib/active_record/type/value.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/type/value.rb b/activerecord/lib/active_record/type/value.rb
index 60ae47db3d..859b51ca90 100644
--- a/activerecord/lib/active_record/type/value.rb
+++ b/activerecord/lib/active_record/type/value.rb
@@ -3,8 +3,7 @@ module ActiveRecord
class Value # :nodoc:
attr_reader :precision, :scale, :limit
- # Valid options are +precision+, +scale+, and +limit+. They are only
- # used when dumping schema.
+ # Valid options are +precision+, +scale+, and +limit+.
def initialize(options = {})
options.assert_valid_keys(:precision, :scale, :limit)
@precision = options[:precision]