Sha256: c80ad53fd343ad46b3bacbbb5cf4e1cb405f2e3369bc7c41c02665cd586b4cf9

Contents?: true

Size: 487 Bytes

Versions: 9

Compression:

Stored size: 487 Bytes

Contents

module ActivityNotification
  module Association
    extend ActiveSupport::Concern

    class_methods do
      # Defines has_many association with ActivityNotification models.
      # @return [ActiveRecord_AssociationRelation<Object>] Database query of associated model instances
      def has_many_records(name, options = {})
        has_many name, **options
      end
    end
  end
end

require_relative 'active_record/notification.rb'
require_relative 'active_record/subscription.rb'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
activity_notification-2.3.3 lib/activity_notification/orm/active_record.rb
activity_notification-2.3.2 lib/activity_notification/orm/active_record.rb
activity_notification-2.3.1 lib/activity_notification/orm/active_record.rb
activity_notification-2.3.0 lib/activity_notification/orm/active_record.rb
activity_notification-2.2.4 lib/activity_notification/orm/active_record.rb
activity_notification-2.2.3 lib/activity_notification/orm/active_record.rb
activity_notification-2.2.2 lib/activity_notification/orm/active_record.rb
activity_notification-2.2.1 lib/activity_notification/orm/active_record.rb
activity_notification-2.2.0 lib/activity_notification/orm/active_record.rb