Sha256: 98fdcc8094c4bd639481c0a39f6bf46fb06ab556d994d50c366b1e34d26ab986
Contents?: true
Size: 391 Bytes
Versions: 2
Compression:
Stored size: 391 Bytes
Contents
# frozen_string_literal: true require 'active_record' require 'bundle_notification/serializer' module BundleNotification class Snippet < ActiveRecord::Base self.table_name = 'bundle_notification_snippets' serialize :data, Serializer validates :recipient, presence: true scope :unsent_for, ->(mailer_class) { where(mailer_class: mailer_class, sent_at: nil) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bundle_notification-0.2.2 | lib/bundle_notification/snippet.rb |
bundle_notification-0.2.1 | lib/bundle_notification/snippet.rb |