diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-01-11 23:13:54 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-01-11 23:26:32 -0200 |
commit | fc74a51c3fd51d33fb4891a1f0c8d4571a776905 (patch) | |
tree | ce012763a7ee7e68848e980892d6b9f8b9911a76 /activerecord/lib/active_record/connection_adapters/column.rb | |
parent | ffc8e59e8bfa08672732553200868070e82d220c (diff) | |
download | rails-fc74a51c3fd51d33fb4891a1f0c8d4571a776905.tar.gz rails-fc74a51c3fd51d33fb4891a1f0c8d4571a776905.tar.bz2 rails-fc74a51c3fd51d33fb4891a1f0c8d4571a776905.zip |
on and ON are type casted to a true boolean column
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/column.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/column.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb index a7856539b7..88fe9c396e 100644 --- a/activerecord/lib/active_record/connection_adapters/column.rb +++ b/activerecord/lib/active_record/connection_adapters/column.rb @@ -5,8 +5,8 @@ module ActiveRecord module ConnectionAdapters # An abstract definition of a column in a table. class Column - TRUE_VALUES = [true, 1, '1', 't', 'T', 'true', 'TRUE'].to_set - FALSE_VALUES = [false, 0, '0', 'f', 'F', 'false', 'FALSE'].to_set + TRUE_VALUES = [true, 1, '1', 't', 'T', 'true', 'TRUE', 'on', 'ON'].to_set + FALSE_VALUES = [false, 0, '0', 'f', 'F', 'false', 'FALSE', 'off', 'OFF'].to_set module Format ISO_DATE = /\A(\d{4})-(\d\d)-(\d\d)\z/ |