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.59 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.58 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.57 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.56 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.55 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.54 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.53 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.52 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.51 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.50 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.49 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.48 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.47 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.45 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.44 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.43 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.42 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.41 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.40 app/controllers/carnival/admin_user_notifications_controller.rb
carnival-0.0.39 app/controllers/carnival/admin_user_notifications_controller.rb