Permalink
Browse files

Active Model typos.

  • Loading branch information...
rtlechow authored and fxn committed Mar 4, 2011
1 parent e95b965 commit 86c15d8b8984b5865d73ecdd6687d91060bda5ba
Showing with 2 additions and 2 deletions.
  1. +1 −1 activemodel/README.rdoc
  2. +1 −1 activemodel/test/cases/validations/numericality_validation_test.rb
View
@@ -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 @@ def teardown
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

1 comment on commit 86c15d8

@heycarsten

This comment has been minimized.

Show comment
Hide comment
@heycarsten

heycarsten Apr 15, 2011

What-what! Patch like a boss, RT!

What-what! Patch like a boss, RT!

Please sign in to comment.