diff options
author | Max Lapshin <max@maxidoors.ru> | 2009-01-14 16:09:23 +0300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-02-06 13:39:08 +1300 |
commit | 1fe9d6cc88dbad26e865c7c2bfd83da25796e2f1 (patch) | |
tree | c0e930054c46d346ed46653bdcd0a7200e1bf9b5 /activerecord/lib/active_record/connection_adapters/abstract | |
parent | 9c6bde58c52f63d9e40979b89bc5db0c786159da (diff) | |
download | rails-1fe9d6cc88dbad26e865c7c2bfd83da25796e2f1.tar.gz rails-1fe9d6cc88dbad26e865c7c2bfd83da25796e2f1.tar.bz2 rails-1fe9d6cc88dbad26e865c7c2bfd83da25796e2f1.zip |
Support true/false in query_attribute for calculated columns
Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb index 273f823e7f..24c734cddb 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -8,6 +8,7 @@ module ActiveRecord # 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 module Format ISO_DATE = /\A(\d{4})-(\d\d)-(\d\d)\z/ |