Skip to content
This repository
tag: v4.5.1

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 Gemfile
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 picky-activemodel.gemspec + Picky ActiveModel gemspec May 31, 2011

Picky ActiveModel Integration



  1. Define a client instance, and save it (as an example) in a constant:

    BookSearch = :host => 'some_host', :port => 1234, :path => '/path/to/search'

  2. Use it in your controllers to search:

    result = :query => 'some query', :offset => 123, :ids => 20 # This gets you a hash

  3. Then, to make access easier (if needed):

    result.extend Picky::Convenience

  4. This gets you the following methods on result:

    • empty?

    • ids(limit=20)

    • clear_ids

    • allocations

    • allocations_size

    • total

Something went wrong with that request. Please try again.