Browse Source

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

topic-sass
Jason Denney 11 years ago
parent
commit
dc60630d2d
  1. 2
      app/components/bikes.rb

2
app/components/bikes.rb

@ -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]

Loading…
Cancel
Save