mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-04-04 05:33:22 -04:00
set per_page for bike brand
This commit is contained in:
parent
0d5b93b0b1
commit
128cf32bfa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user