Merge pull request #72 from spacemunkay/sorting-and-shop-id-fix-68-63

Sorting and shop id fix 68 63
This commit is contained in:
Jason Denney
2013-10-19 07:12:57 -07:00
6 changed files with 34 additions and 11 deletions
+4
View File
@@ -33,6 +33,10 @@ class Bikes < Netzke::Basepack::Grid
}
}
]
# Default the sorting to ASC on shop_id
c.data_store.sorters = [{ property: 'shop_id', direction: 'ASC' }]
@bike = Bike.all
c.prohibit_update = true if cannot? :update, @bike
c.prohibit_create = true if cannot? :create, @bike