Sha256: 1a276f99bcc0947cfa2bfd14a13a7c8d1cae175496b6ba7ce4a1475c1f005d66

Contents?: true

Size: 304 Bytes

Versions: 29

Compression:

Stored size: 304 Bytes

Contents

require 'simple_search_filter/models/searchable_class_methods'

class << ActiveRecord::Base

  def searchable_by_simple_filter(options={})
    extend SimpleSearchFilter::Models::SearchableClassMethods

    scope :by_filter, ->(filter, options={}) { make_search_by_filter(filter, options) }

  end

end


Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
simple_search_filter-0.2.1 lib/simple_search_filter/searchable.rb
simple_search_filter-0.1.1 lib/simple_search_filter/searchable.rb
simple_search_filter-0.1.0 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.31 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.30 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.29 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.28 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.27 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.26 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.25 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.24 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.23 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.22 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.21 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.20 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.17 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.16 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.15 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.13 lib/simple_search_filter/searchable.rb
simple_search_filter-0.0.12 lib/simple_search_filter/searchable.rb