Sha256: 8c9d10647a4fe58742b5556c679cf7b2e862e14fdfbb036adb23cee3da2a4220
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 Bytes
Contents
Spree::Taxon.class_eval do attr_accessible(:style) def display_style return style unless style.blank? return parent.display_style if parent && parent.display_style return "" end end Spree::Taxon.instance_eval do def styles @styles ||= [] end def styles=(styles) @styles = styles end def styles_dropdown styles.map {|s| [s.humanize, s]} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_taxonomy_style-1.2.0 | app/models/taxon_decorator.rb |
spree_taxonomy_style-1.1.3 | app/models/taxon_decorator.rb |