Sha256: a22cf6cdc603924583214f73c9e87dc966f334a444f4d5904045284302691d04
Contents?: true
Size: 217 Bytes
Versions: 3
Compression:
Stored size: 217 Bytes
Contents
Spree::Taxonomy.class_eval do attr_accessible(:purpose) end Spree::Taxonomy.instance_eval do def purposes @purposes ||= ['misc'] end def purposes_dropdown purposes.map {|p| [p.humanize, p]} end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_taxonomy_purpose-1.2.1 | app/models/taxonomy_decorator.rb |
spree_taxonomy_purpose-1.2.0 | app/models/taxonomy_decorator.rb |
spree_taxonomy_purpose-1.1.3 | app/models/taxonomy_decorator.rb |