Sha256: 300006dc4cac9fcf614a04bb69fdd1923a315380785b3bf84efc8b2cbd7b10bd
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
MailyHerald.setup do |config| config.token_redirect {|subscription| "/" } config.context :all_users do |context| context.scope {User.active} context.destination {|user| user.email} context.attributes do |user| attribute_group(:user) do attribute(:name) {user.name} attribute(:email) {user.email} attribute(:created_at) {user.created_at} attribute(:weekly_notifications) {user.weekly_notifications} attribute_group(:properties) do attribute(:prop1) { user.name[0] } attribute(:prop2) { 2 } end end end end config.list :locked_list do |list| list.context_name = :all_users end config.list :generic_list do |list| list.context_name = :all_users end config.one_time_mailing :locked_mailing do |mailing| mailing.enable mailing.title = "Test mailing" mailing.subject = "Test mailing" mailing.list = :generic_list mailing.start_at = "user.created_at" mailing.template = "User name: {{user.name}}." end end
Version data entries
4 entries across 4 versions & 1 rubygems