Sha256: ae9c765394b35761d9b13bf837b9fb24e2e94b89b05dc668f07a8e5ffd79041b

Contents?: true

Size: 676 Bytes

Versions: 29

Compression:

Stored size: 676 Bytes

Contents

# -*- encoding : utf-8 -*-
module Carnival
  class AdminUserNotificationsController < Carnival::BaseAdminController
    layout "carnival/admin"

    def read
      admin_user_notification = AdminUserNotification.find params[:id]
      link = admin_user_notification.mark_as_read_and_get_link
      redirect_to link
    end

    def generate_datatable
      query = Carnival::AdminUserNotification.where('admin_user_id =  ? ', current_admin_user.id)
      modelo_presenter = Carnival::AdminUserNotificationPresenter.new(query)
      @admin_user_notifications = []
      GenericDatatable.new(view_context, AdminUserNotification, self, modelo_presenter, query)
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
carnival-0.0.38 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.37 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.36 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.35 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.34 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.33 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.26 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.11 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.10 app/controllers/carnival/admin_user_notifications_controller.rb