Class: Spree::Admin::NotificationsController

Inherits:
ResourceController
  • Object
show all
Defined in:
app/controllers/spree/admin/notifications_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
9
10
11
# File 'app/controllers/spree/admin/notifications_controller.rb', line 6

def index
  @read_notifications_count = @customer_notification.notifications.where.not(read_at: nil).count
  @notifications = @customer_notification.notifications
                                         .page(params[:page])
                                         .per(params[:per_page])
end