spec/rails_app/app/models/admin.rb in activity_notification-1.1.0 vs spec/rails_app/app/models/admin.rb in activity_notification-1.2.0
- old
+ new
@@ -1,10 +1,9 @@
class Admin < ActiveRecord::Base
belongs_to :user
validates :user, presence: true
- acts_as_notification_target email: :email,
- email_allowed: ->(admin, key) { admin.user.confirmed_at.present? },
+ acts_as_notification_target email_allowed: false,
subscription_allowed: true,
devise_resource: :user,
printable_name: ->(admin) { "admin (#{admin.user.name})" }
end