Sha256: 917e14654398eadfc59ad0e59940a4bd7f0d48b666828eb7714a48dbfcfa40a8
Contents?: true
Size: 1.51 KB
Versions: 3
Compression:
Stored size: 1.51 KB
Contents
module Refinery module <%= namespacing %> class Setting class << self def confirmation_message Refinery::Setting.find_or_set(:<%= singular_name %>_confirmation_message, "Thank you for your <%= singular_name.humanize.downcase %> %name%,\n\nThis email is a receipt to confirm we have received your <%= singular_name.humanize.downcase %> and we'll be in touch shortly.\n\nThanks." ) end def confirmation_subject Refinery::Setting.find_or_set(:<%= singular_name %>_confirmation_subject, "Thank you for your <%= singular_name.humanize.downcase %>") end def notification_recipients Refinery::Setting.find_or_set(:<%= singular_name %>_notification_recipients, "you@example.com") end def notification_subject Refinery::Setting.find_or_set(:<%= singular_name %>_notification_subject, "New <%= singular_name.humanize.downcase %> from your website") end def confirmation_message=(value) Refinery::Setting.set(:<%= singular_name %>_confirmation_message, value) end def confirmation_subject=(value) Refinery::Setting.set(:<%= singular_name %>_confirmation_subject, value) end def notification_recipients=(value) Refinery::Setting.set(:<%= singular_name %>_notification_recipients, value) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems