Skip to content

Commit

Permalink
Add Paginator module to BetsController
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonTenko committed Mar 27, 2017
1 parent 4f74a72 commit b8689fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/bets_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
class BetsController < ApplicationController
include Utilities::Paginator
helper Utilities::Paginator

def index
@bets = Bet.all
@bets = items_to_display(model: Bet,
items_per_page: 25,
current_page: params[:page])
end

def show
Expand Down

0 comments on commit b8689fb

Please sign in to comment.