lib/simple_pages/models/page_cluster.rb in simple-pages-rails-0.5.0 vs lib/simple_pages/models/page_cluster.rb in simple-pages-rails-0.6.0

- old
+ new

@@ -4,15 +4,14 @@ module Models module PageCluster extend ActiveSupport::Concern included do serialize :cluster - attr_accessible :cluster end module ClassMethods def without_cluster - where(cluster: "--- \n...\n") + where(cluster: [nil, "--- \n...\n"]) end def with_cluster(name) where('cluster LIKE ?', "%#{name}%") end