Sha256: 0093af0fb664b4e1ad21b8c2543f87b3cc67741902f5153788e1c81f3ce9db55
Contents?: true
Size: 553 Bytes
Versions: 18
Compression:
Stored size: 553 Bytes
Contents
module Notifiable class App < ActiveRecord::Base has_many :device_tokens, :class_name => 'Notifiable::DeviceToken', :dependent => :destroy has_many :notifications, :class_name => 'Notifiable::Notification', :dependent => :destroy serialize :configuration def configure(provider, notifier) return unless self.configuration && self.configuration[provider] self.configuration[provider].each_pair {|key, value| notifier.send("#{key}=", value) if notifier.methods.include?("#{key}=".to_sym) } end end end
Version data entries
18 entries across 18 versions & 1 rubygems