Skip to content

Commit

Permalink
Name attribute on Taxon should be mass-assignable
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Apr 4, 2012
1 parent 3ed66dc commit 5f0c6bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/app/models/spree/taxon.rb
Expand Up @@ -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>' },
Expand Down

0 comments on commit 5f0c6bd

Please sign in to comment.