lujanfernaud/prevy

View on GitHub
app/controllers/searches_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class SearchesController < ApplicationController
  require "will_paginate/array"

  def show
    @groups = Group.unhidden.search(params[:keywords]).paginate(
      page:     params[:page],
      per_page: Group::GROUPS_PER_PAGE
    )
  end
end