Sha256: 4929c13a1ebbebd53228170c2a8b74d06a22e815e31254c4ac7fb47f051afa7e

Contents?: true

Size: 665 Bytes

Versions: 31

Compression:

Stored size: 665 Bytes

Contents

module Searchlogic
  # A class that acts like a model, creates attr_accessors for named_scopes, and then
  # chains together everything when an "action" method is called. It basically makes
  # implementing search forms in your application effortless:
  #
  #   search = User.search
  #   search.username_like = "bjohnson"
  #   search.all
  #
  # Is equivalent to:
  #
  #   User.search(:username_like => "bjohnson").all
  #
  # Is equivalent to:
  #
  #   User.username_like("bjohnson").all
  class Search
    include Base
    include Conditions
    include DateParts
    include MethodMissing
    include Scopes
    include Ordering
    include ToYaml
  end
end

Version data entries

31 entries across 31 versions & 4 rubygems

Version Path
searchlogic-2.4.32 lib/searchlogic/search.rb
searchlogic-2.4.31 lib/searchlogic/search.rb
searchlogic-2.4.30 lib/searchlogic/search.rb
searchlogic-2.4.29 lib/searchlogic/search.rb
searchlogic-2.4.28 lib/searchlogic/search.rb
nberger-searchlogic-2.4.29 lib/searchlogic/search.rb
nberger-searchlogic-2.4.28 lib/searchlogic/search.rb
obitum-searchlogic-2.4.28 lib/searchlogic/search.rb
searchlogic-2.4.27 lib/searchlogic/search.rb
yoomee-searchlogic-2.4.27 lib/searchlogic/search.rb
searchlogic-2.4.26 lib/searchlogic/search.rb