mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Use models to sort data when possible
This commit is contained in:
@@ -2,7 +2,6 @@ class Bikes < Netzke::Basepack::Grid
|
||||
def configure(c)
|
||||
super
|
||||
c.model = "Bike"
|
||||
c.data_store.sorters = [{ :property => :shop_id, :direction => :ASC}]
|
||||
|
||||
# columns with :id set, have :min_chars set in init_component
|
||||
# See: http://stackoverflow.com/questions/17738962/netzke-grid-filtering
|
||||
|
||||
@@ -13,7 +13,6 @@ class Users < Netzke::Basepack::Grid
|
||||
c.header = false
|
||||
c.model = "User"
|
||||
|
||||
c.data_store.sorters = [{ :property => :username, :direction => :ASC}]
|
||||
c.columns = [
|
||||
{ :name => :username, :read_only => true },
|
||||
:first_name,
|
||||
|
||||
Reference in New Issue
Block a user