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 28, 2017
1 parent 733fd12 commit acea506
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 acea506

Please sign in to comment.