mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Active Model typos.
This commit is contained in:
parent
e95b965926
commit
86c15d8b89
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ the Rails framework.
|
|||
Prior to Rails 3.0, if a plugin or gem developer wanted to have an object
|
||||
interact with Action Pack helpers, it was required to either copy chunks of
|
||||
code from Rails, or monkey patch entire helpers to make them handle objects
|
||||
that did not exacly conform to the Active Record interface. This would result
|
||||
that did not exactly conform to the Active Record interface. This would result
|
||||
in code duplication and fragile applications that broke on upgrades.
|
||||
|
||||
Active Model solves this. You can include functionality from the following
|
||||
|
|
|
@ -14,7 +14,7 @@ class NumericalityValidationTest < ActiveModel::TestCase
|
|||
|
||||
NIL = [nil]
|
||||
BLANK = ["", " ", " \t \r \n"]
|
||||
BIGDECIMAL_STRINGS = %w(12345678901234567890.1234567890) # 30 significent digits
|
||||
BIGDECIMAL_STRINGS = %w(12345678901234567890.1234567890) # 30 significant digits
|
||||
FLOAT_STRINGS = %w(0.0 +0.0 -0.0 10.0 10.5 -10.5 -0.0001 -090.1 90.1e1 -90.1e5 -90.1e-5 90e-5)
|
||||
INTEGER_STRINGS = %w(0 +0 -0 10 +10 -10 0090 -090)
|
||||
FLOATS = [0.0, 10.0, 10.5, -10.5, -0.0001] + FLOAT_STRINGS
|
||||
|
|
Loading…
Reference in a new issue