lib/gizzard/mysql.rb in gizzard-0.5.0 vs lib/gizzard/mysql.rb in gizzard-0.6.0

- old
+ new

@@ -1,9 +1,11 @@ module Gizzard module Mysql extend ActiveSupport::Concern included do + include Base + scope :filtered_by, -> (column, value) do v = value.respond_to?(:strip) ? value.strip : value v.present? ? where(column => value) : all end