aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2014-10-26 12:23:22 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2014-10-26 17:22:38 +0530
commitd8ea9938f4231dcfb5ad5f5f8dedd19e9ccd22b7 (patch)
tree2d008f1cb975410f61a35daa12daad06a88d9944 /activerecord/lib/active_record/type
parent89397d09ebb7ca4089f17820d05d5eb223913652 (diff)
downloadrails-d8ea9938f4231dcfb5ad5f5f8dedd19e9ccd22b7.tar.gz
rails-d8ea9938f4231dcfb5ad5f5f8dedd19e9ccd22b7.tar.bz2
rails-d8ea9938f4231dcfb5ad5f5f8dedd19e9ccd22b7.zip
Fix typo in error message when non-boolean value is assigned to boolean column
Diffstat (limited to 'activerecord/lib/active_record/type')
-rw-r--r--activerecord/lib/active_record/type/boolean.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/type/boolean.rb b/activerecord/lib/active_record/type/boolean.rb
index 1311be3944..612478e67d 100644
--- a/activerecord/lib/active_record/type/boolean.rb
+++ b/activerecord/lib/active_record/type/boolean.rb
@@ -15,7 +15,7 @@ module ActiveRecord
else
if !ConnectionAdapters::Column::FALSE_VALUES.include?(value)
ActiveSupport::Deprecation.warn(<<-EOM)
- You attempted to assign a value which is not explicitly true or false to a boolean column. Currently this value casts to false. This will change to match Ruby's sematics, and will cast to true in Rails 5.0. If you would like to maintain the current behavior, you should explicitly handle the values you would like cast to false.
+ You attempted to assign a value which is not explicitly true or false to a boolean column. Currently this value casts to false. This will change to match Ruby's semantics, and will cast to true in Rails 5.0. If you would like to maintain the current behavior, you should explicitly handle the values you would like cast to false.
EOM
end
false