Permalink
Browse files

Use #number? column proxy internally

  • Loading branch information...
1 parent eaa4f47 commit 067dc211bd29d53a1d87bd27a9a94cc7c2443087 @obrie obrie committed Mar 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/preferences/preference_definition.rb
@@ -41,7 +41,7 @@ def type_cast(value)
def query(value)
if !(value = type_cast(value))
false
- elsif @column.number?
+ elsif number?
!value.zero?
else
!value.blank?

0 comments on commit 067dc21

Please sign in to comment.