Sha256: 1b370d96188ed6fea2040543decadd6728c77783351444abb526c51a7e9587bf
Contents?: true
Size: 340 Bytes
Versions: 2
Compression:
Stored size: 340 Bytes
Contents
Spree::Admin::ProductsHelper.class_eval do def roles_for(product) options = @roles.map do |role| selected = product.roles.include?(role) content_tag(:option, :value => role.id, :selected => ('selected' if selected)) do role.name end end.join("").html_safe end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_restriction-1.2.4 | app/helpers/products_helper_decorator.rb |
spree_restriction-1.2.3 | app/helpers/products_helper_decorator.rb |