Permalink
Browse files

make content presence dependent on type instead of (possibly blank) data

  • Loading branch information...
1 parent 0c64c21 commit 1317b54d00790e519157691687615e1bdff425a2 S. Brent Faulkner committed Jan 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sequel_container.rb
View
2 lib/sequel_container.rb
@@ -30,7 +30,7 @@ def #{object}_url
class_eval <<-CONTAINED_QUERY, __FILE__, __LINE__ + 1
def #{object}?
- !#{object}_data.nil?
+ !#{object}_type.nil? && !#{object}_type.empty?
end
CONTAINED_QUERY

0 comments on commit 1317b54

Please sign in to comment.