Methods
C
Instance Public methods
collection()
# File app/controllers/cardboard/admin_controller.rb, line 10
def collection
  @q ||= end_of_association_chain.search(params[:q])
  get_collection_ivar || begin
    set_collection_ivar((@q.respond_to?(:scoped) ? @q.scoped.result(:distinct => true) : @q.result(:distinct => true)).page(params[:page]))
  end
end