aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-07-08 17:10:29 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-07-08 17:10:29 +0000
commit338defb48ca29148c933aee6fc34ae902bc7ba7f (patch)
tree143de664a449eff235f26cc13f5dbfb5941187ee /activerecord
parentf801cd7959d92c565c3fb15f88ea59d9b49aa629 (diff)
downloadrails-338defb48ca29148c933aee6fc34ae902bc7ba7f.tar.gz
rails-338defb48ca29148c933aee6fc34ae902bc7ba7f.tar.bz2
rails-338defb48ca29148c933aee6fc34ae902bc7ba7f.zip
Respect type method. #5337
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4593 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb6
1 files changed, 2 insertions, 4 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 d088e2ca26..3398bc68cd 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
@@ -21,16 +21,14 @@ module ActiveRecord
@default = type_cast(default)
@primary = nil
- @text = [:string, :text].include? @type
- @number = [:float, :integer].include? @type
end
def text?
- @text
+ [:string, :text].include? type
end
def number?
- @number
+ [:float, :integer].include? type
end
# Returns the Ruby class that corresponds to the abstract data type.