Sha256: 27ecb1228882bf05ae5e2c4c5928453aaa951fc62d94ad1b52026681b6b928ac
Contents?: true
Size: 349 Bytes
Versions: 1
Compression:
Stored size: 349 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 scope :unsent_for, ->(mailer_class) { where(mailer_class: mailer_class, sent_at: nil) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bundle_notification-0.2.0 | lib/bundle_notification/snippet.rb |