Module: E9Crm::OffersHelper
- Defined in:
- app/helpers/e9_crm/offers_helper.rb
Instance Method Summary collapse
Instance Method Details
#offer_select_options(with_all_option = true) ⇒ Object
11 12 13 14 15 |
# File 'app/helpers/e9_crm/offers_helper.rb', line 11 def (with_all_option = true) = %w(contact file_download new_content_subscription newsletter_subscription video).map {|t| [t.titleize, t] } .unshift(['All Types', nil]) if with_all_option () end |
#records_table_field_map_for_offer ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'app/helpers/e9_crm/offers_helper.rb', line 2 def records_table_field_map_for_offer { :fields => { :name => nil, :type => lambda {|r| r.class.model_name.human } } } end |