```ruby
require 'active_support/concern'

module Pageable
  extend ActiveSupport::Concern

  included do
    def prepare_paging
      if params[:q].present?
        @page = params[:q][:page]
        @per_page = params[:q][:per_page]
      end
    end
  end
end
```

Allow paging params outside of search params
user
```ruby
require 'active_support/concern'

module Pageable
  extend ActiveSupport::Concern

  included do
    def prepare_paging
      if params[:q].present?
        @page = params[:q][:page]
        @per_page = params[:q][:per_page]
      else
        @page = params[:page]
        @per_page = params[:per_page]
      end
    end
  end
end
```
assistant