Sha256: cca5dcde362f6f903643087c5cf014c4de75fdb1596b6779e2703526287acb7d

Contents?: true

Size: 403 Bytes

Versions: 16

Compression:

Stored size: 403 Bytes

Contents

class User < ActiveRecord::Base
  # groups
  scope :english_users, where(:locale => 'en')
  scope :chinese_users, where(:locale => 'zh')

  ###
  # here you can define:
  # 1. Which columns can be acted as payload columns.
  # 2. Which scope can be user group.
  acts_as_mail_receiver :payload_columns => %w{firstname lastname},
                        :groups => %w{all english_users chinese_users}
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mail_engine-0.1.15 test/dummy/app/models/user.rb
mail_engine-0.1.14 test/dummy/app/models/user.rb
mail_engine-0.1.13 test/dummy/app/models/user.rb
mail_engine-0.1.12 test/dummy/app/models/user.rb
mail_engine-0.1.11 test/dummy/app/models/user.rb
mail_engine-0.1.10 test/dummy/app/models/user.rb
mail_engine-0.1.9 test/dummy/app/models/user.rb
mail_engine-0.1.8 test/dummy/app/models/user.rb
mail_engine-0.1.7 test/dummy/app/models/user.rb
mail_engine-0.1.6 test/dummy/app/models/user.rb
mail_engine-0.1.5 test/dummy/app/models/user.rb
mail_engine-0.1.4 test/dummy/app/models/user.rb
mail_engine-0.1.3 test/dummy/app/models/user.rb
mail_engine-0.1.2 test/dummy/app/models/user.rb
mail_engine-0.1.1 test/dummy/app/models/user.rb
mail_engine-0.1.0 test/dummy/app/models/user.rb