From 128cf32bfa59ddac24f43409c2d5945f1a8c2f12 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sat, 8 Dec 2012 16:35:13 -0500 Subject: [PATCH] set per_page for bike brand --- app/models/bike_brand.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/bike_brand.rb b/app/models/bike_brand.rb index ed16f36..fb91e83 100644 --- a/app/models/bike_brand.rb +++ b/app/models/bike_brand.rb @@ -4,6 +4,8 @@ class BikeBrand < ActiveRecord::Base has_many :bikes has_many :bike_models + self.per_page = 15 + def models self.bike_models end