aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-10-26 10:25:22 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-10-26 10:25:22 -0700
commit5a88d1e233e49c62c7bcbabad0d8489d0f7239ba (patch)
treefe1819cedd2aefc06c5ce7e5a2cb3e91e8e9e9ae
parente8b60a9572786662a649ab44ec8aa012b12f79e9 (diff)
parentd8ea9938f4231dcfb5ad5f5f8dedd19e9ccd22b7 (diff)
downloadrails-5a88d1e233e49c62c7bcbabad0d8489d0f7239ba.tar.gz
rails-5a88d1e233e49c62c7bcbabad0d8489d0f7239ba.tar.bz2
rails-5a88d1e233e49c62c7bcbabad0d8489d0f7239ba.zip
Merge pull request #17397 from prathamesh-sonpatki/fix-type-boolean-error-msg-ci-skip
Fix typo in error message when non-boolean value is assigned to boolean column
-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