Skip to content

Commit

Permalink
Increase pagination records per page for Events to 200
Browse files Browse the repository at this point in the history
  • Loading branch information
animista01 committed Mar 11, 2019
1 parent d6968d7 commit 7c055cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Event < ActiveRecord::Base
validates :city, presence: true
validate :three_events_in_month?

paginates_per 200

def three_events_in_month?
featured_events_in_month = Event.events_in_month(self.starting_at)
Expand Down

0 comments on commit 7c055cc

Please sign in to comment.