1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 08:43:23 -05:00

On second thought, don't want to default this one.

This commit is contained in:
Jason Denney 2013-10-19 18:08:32 -04:00
parent 83bdaf5973
commit dc60630d2d

View File

@ -8,7 +8,7 @@ class Bikes < Netzke::Basepack::Grid
c.columns = [
{ :name => :shop_id, :text => 'Shop ID', :default_value => Bike.last.id.to_i + 1},
:serial_number,
{ :id => :bike_brand__brand, :name => :bike_brand__brand, :text => 'Brand', :default_value => BikeBrand.first.id },
{ :id => :bike_brand__brand, :name => :bike_brand__brand, :text => 'Brand'},
{ :name => :model, :text => 'Model',
:scope => lambda { |rel|
if session[:selected_bike_brand_id]