app/models/effective/region.rb in effective_regions-1.4.11 vs app/models/effective/region.rb in effective_regions-1.5.0

- old
+ new

@@ -13,9 +13,10 @@ end serialize :snippets, HashWithIndifferentAccess scope :global, -> { where("#{EffectiveRegions.regions_table_name}.regionable_type IS NULL").where("#{EffectiveRegions.regions_table_name}.regionable_id IS NULL") } + scope :with_snippets, -> { where("#{EffectiveRegions.regions_table_name}.snippets ILIKE ?", '%snippet_%') } def snippets self[:snippets] || HashWithIndifferentAccess.new() end