mbleigh/seed-fu — Issue #29: array splat seems to be having trouble
Author: popepoopinpants
Created: 2011-11-18 01:38:22+00:00
State: open

First off: Thanks for seed-fu! :)

using an array splat to expand an array for the constraints causes a syntax error:

```ruby
@gw_product_transient = @facility.products.seed(
*@PRODUCT_SEED_KEYS, {
:name => "Transient",
:description => "Parking that spans a whole day.",
:product_type => @product_type_transient,
:price => 35.00,
:service_fee => 0.00
}
).first
```

spits out

```
rake aborted!
(eval):54:in `run_file': compile error
(eval):47: syntax error, unexpected tLBRACE, expecting tAMPER
(eval):54: syntax error, unexpected ')', expecting $end).first
```

whereas
```ruby
@gw_product_transient = @facility.products.seed(
:name, :facility_id, :product_type_id, {
:name => "Transient",
:description => "Parking that spans a whole day.",
:product_type => @product_type_transient,
:price => 35.00,
:service_fee => 0.00
}
).first
```

has no problem.

rails 3.1.1, ruby 1.8.7-p352, seed-fu-2.1.0, rake-0.9.2.2

Hopefully I'm not showing off my rails-newbness...