Sha256: 2c6b8453589818a3958b09878053bcfac982be5da09dea882536d6b63d3c1870

Contents?: true

Size: 283 Bytes

Versions: 7

Compression:

Stored size: 283 Bytes

Contents

module SearchesHelper
  def search_membership_type_options(membership_types, selected=nil)
    options = [
      ['All Membership Types', -1]
    ]

    membership_types.each do |type|
      options << [type.name, type.id]
    end

    options_for_select(options, selected)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
artfully_ose-1.2.0 app/helpers/searches_helper.rb
artfully_ose-1.2.0.beta.1 app/helpers/searches_helper.rb
artfully_ose-1.2.0.alpha.2 app/helpers/searches_helper.rb
artfully_ose-1.2.0.alpha.1 app/helpers/searches_helper.rb
artfully_ose-1.2.0.pre.27 app/helpers/searches_helper.rb
artfully_ose-1.2.0.pre.26 app/helpers/searches_helper.rb
artfully_ose-1.2.0.pre.24 app/helpers/searches_helper.rb