spree/spree — Issue #1060: Spree::Promotion#code missing
Author: cboyd-iseatz
Created: 2012-01-31 17:39:18+00:00
State: open

[This](https://github.com/spree/spree/blob/a8898232f40116cd72065d265ad997157e278579/promo/db/migrate/20120119024710_promotion_prefs_to_fields.rb) migration and the related commit has been merged in to the `three-dot-two` branch but not master. As a result, I'm getting an error because Promotion#code doesn't exist:

2012-01-31T17:12:34+00:00 app[web.1]: Started GET "/admin/promotions/new" for 108.95.16.87 at 2012-01-31 17:12:34 +0000
2012-01-31T17:12:35+00:00 app[web.1]: ActionView::Template::Error (undefined method `code' for #):
2012-01-31T17:12:35+00:00 app[web.1]:
2012-01-31T17:12:35+00:00 app[web.1]: 13:
2012-01-31T17:12:35+00:00 app[web.1]: 14: <%= f.field_container :code do %>
2012-01-31T17:12:35+00:00 app[web.1]: 15: <%= f.label :code, t(:code) %>

2012-01-31T17:12:35+00:00 app[web.1]: 16: <%= f.text_field :code %>
2012-01-31T17:12:35+00:00 app[web.1]: 17: <% end %>
2012-01-31T17:12:35+00:00 app[web.1]: 18:
2012-01-31T17:12:35+00:00 app[web.1]: 19: <%= f.field_container :path do %>

Will this be merged into master, or should I be running off of the `three-dot-two` branch?