Commit 4b3b5d071823d498f044a558b5a39909e0dac5cd
1 parent
90a82728
Exists in
master
and in
27 other branches
Allows mass assignment for qualifiers_list
Sets qualifiers_list as attr_accessible so users can add qualifiers. This fixes the edit product page and probably others for rails3.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/product.rb
| ... | ... | @@ -11,7 +11,7 @@ class Product < ActiveRecord::Base |
| 11 | 11 | |
| 12 | 12 | SEARCH_DISPLAYS = %w[map full] |
| 13 | 13 | |
| 14 | - attr_accessible :name, :product_category, :highlighted, :price, :enterprise, :image_builder, :description, :available, :qualifiers, :unit_id, :discount, :inputs | |
| 14 | + attr_accessible :name, :product_category, :highlighted, :price, :enterprise, :image_builder, :description, :available, :qualifiers, :unit_id, :discount, :inputs, :qualifiers_list | |
| 15 | 15 | |
| 16 | 16 | def self.default_search_display |
| 17 | 17 | 'full' | ... | ... |