Sha256: 6cbfe1b293640c509a1cf1c9249176dfd7385c47e718479865ce7e18991d1468
Contents?: true
Size: 448 Bytes
Versions: 2
Compression:
Stored size: 448 Bytes
Contents
require 'espresso/collection' require 'searchlogic' module Espresso class Collection # Use ActiveRecord::Base#searchlogic method to generate # base for finding the collection # @return [ActiveRecord::Base] ActiveRecord model scoped with searchlogic def base unless @search search_options = options.delete(:search) { {} } @search = @base.searchlogic(search_options) end @search end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
espresso-framework-0.3.0 | lib/espresso/collection/searchlogic.rb |
espresso-0.2.1 | lib/espresso/collection/searchlogic.rb |