Skip to content
Browse files

Name attribute on Taxon should be mass-assignable

  • Loading branch information...
1 parent 3ed66dc commit 5f0c6bd205541d483eddfd0f35a25a67756e2332 @radar radar committed Apr 4, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 core/app/models/spree/taxon.rb
View
2 core/app/models/spree/taxon.rb
@@ -6,6 +6,8 @@ class Taxon < ActiveRecord::Base
has_and_belongs_to_many :products, :join_table => 'spree_products_taxons'
before_create :set_permalink
+ attr_accessible :name
+
validates :name, :presence => true
has_attached_file :icon,
:styles => { :mini => '32x32>', :normal => '128x128>' },

0 comments on commit 5f0c6bd

Please sign in to comment.
Something went wrong with that request. Please try again.