class ActivityNotification::ORM::ActiveRecord::Subscription

Subscription model implementation generated by ActivityNotification.

Public Class Methods

uniq_keys() click to toggle source

Selects unique keys from query for subscriptions. @return [Array<String>] Array of subscription unique keys

# File lib/activity_notification/orm/active_record/subscription.rb, line 45
def self.uniq_keys
  # select method cannot be chained with order by other columns like created_at
  # select(:key).distinct.pluck(:key)
  pluck(:key).uniq
end