Sha256: 9e36de1021c6bf34d4136a5148049526cd253f99139b7b15876f7f9c0fa65a24

Contents?: true

Size: 211 Bytes

Versions: 15

Compression:

Stored size: 211 Bytes

Contents

class Product < ActiveRecord::Base
  belongs_to :category

  paginates_per 3

  searchable_by_simple_filter

  scope :archived, lambda {  |include_archived| where(is_archived: false) if !include_archived}


end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
simple_search_filter-0.0.28 test/dummy/app/models/product.rb
simple_search_filter-0.0.27 test/dummy/app/models/product.rb
simple_search_filter-0.0.26 test/dummy/app/models/product.rb
simple_search_filter-0.0.25 test/dummy/app/models/product.rb
simple_search_filter-0.0.24 test/dummy/app/models/product.rb
simple_search_filter-0.0.23 test/dummy/app/models/product.rb
simple_search_filter-0.0.22 test/dummy/app/models/product.rb
simple_search_filter-0.0.21 test/dummy/app/models/product.rb
simple_search_filter-0.0.20 test/dummy/app/models/product.rb
simple_search_filter-0.0.17 test/dummy/app/models/product.rb
simple_search_filter-0.0.16 test/dummy/app/models/product.rb
simple_search_filter-0.0.15 test/dummy/app/models/product.rb
simple_search_filter-0.0.13 test/dummy/app/models/product.rb
simple_search_filter-0.0.12 test/dummy/app/models/product.rb
simple_search_filter-0.0.11 test/dummy/app/models/product.rb