mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
set per_page for bike brand
This commit is contained in:
@@ -4,6 +4,8 @@ class BikeBrand < ActiveRecord::Base
|
|||||||
has_many :bikes
|
has_many :bikes
|
||||||
has_many :bike_models
|
has_many :bike_models
|
||||||
|
|
||||||
|
self.per_page = 15
|
||||||
|
|
||||||
def models
|
def models
|
||||||
self.bike_models
|
self.bike_models
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user