Sha256: 303b77ad411b01ea93aa4ff21e71ecf05f88fa97c299d02eb930bf7352387832
Contents?: true
Size: 536 Bytes
Versions: 10
Compression:
Stored size: 536 Bytes
Contents
module Notifiable class LocalizedNotification < ActiveRecord::Base validates :message, presence: true, allow_blank: false belongs_to :notification, :class_name => "Notifiable::Notification" #validates :notification, presence: true serialize :params has_many :notification_statuses, :class_name => 'Notifiable::NotificationStatus', :dependent => :destroy def send_params @send_params ||= (self.params ? self.params : {}).merge({:localized_notification_id => self.id}) end end end
Version data entries
10 entries across 10 versions & 1 rubygems