Module: SubscriberListsHelper
- Defined in:
- app/helpers/subscriber_lists_helper.rb
Overview
== Schema Information
Table name: subscriber_lists
id :integer not null, primary key
name :string
creator_id :integer
updater_id :integer
created_at :datetime not null
updated_at :datetime not null
customer_search_params :text
list_type :string
add_all_emails :boolean
Instance Method Summary collapse
Instance Method Details
#subscriber_list_command_options(subscriber_list) ⇒ Object
17 18 19 20 21 22 23 |
# File 'app/helpers/subscriber_lists_helper.rb', line 17 def (subscriber_list) [].tap do |opts| opts << link_to(fa_icon('wrench', text: 'Edit'), edit_subscriber_list_path(@subscriber_list)) opts << link_to(fa_icon('plus', text: 'Add New Subscribers'), new_subscribers_subscriber_list_path(@subscriber_list)) opts << link_to(fa_icon('trash', text: 'Delete'), subscriber_list_path(@subscriber_list), data: { turbo_confirm: "Are you sure?", turbo_method: :delete }) if can?(:destroy, @subscriber_list) end end |