Skip to content

Commit

Permalink
Merge pull request codeforamerica#25 from fullstacklabs/CS-733
Browse files Browse the repository at this point in the history
CS-733 Increase pagination records per page for Events to 200
  • Loading branch information
callitafeature authored Mar 11, 2019
2 parents d6968d7 + 7c055cc commit 978e270
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 978e270

Please sign in to comment.