1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/helpers/contacts_helper.rb
2020-04-10 10:13:07 +05:00

15 lines
399 B
Ruby

# frozen_string_literal: true
module ContactsHelper
def contact_public_switch_confirmation(contact)
return if contact.show_in_public?
translate :contact_public_switch_confirmation, value: contact.value
end
def contact_destroy_confirmation(contact)
value = "#{Contact.model_name.human(count: 1)} \"#{contact.value}\""
translate :destroy_confirmation, value: value
end
end