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