Sha256: 397ba42733e95343ae31a3dd61a13d1787d50acab139829319af96a0c9b5c2b5
Contents?: true
Size: 728 Bytes
Versions: 62
Compression:
Stored size: 728 Bytes
Contents
module Workarea class SearchSettingsSeeds def perform puts 'Adding search settings...' add_filters end private def add_filters Search::Settings.current.update_attributes!( terms_facets: %w(Color Size), range_facets: { 'price' => [ { to: 9.99 }, { from: 10, to: 19.99 }, { from: 20, to: 29.99 }, { from: 30, to: 39.99 }, { from: 40, to: 49.99 }, { from: 50, to: 59.99 }, { from: 60, to: 69.99 }, { from: 70, to: 79.99 }, { from: 80, to: 89.99 }, { from: 90, to: 99.99 }, { from: 100 } ] } ) end end end
Version data entries
62 entries across 62 versions & 1 rubygems