Sha256: 52b9a4453a4fa134d50664c7b5674851d280b5316c39cdf1f2b0f84068acee8e
Contents?: true
Size: 640 Bytes
Versions: 4
Compression:
Stored size: 640 Bytes
Contents
module Notifiable class NotificationsController < ApplicationController unloadable def new @notification = Notification.new end def create @notification = Notification.new(params[:notifiable_notification]) if @notification.valid? @subscriber.save end end def dismiss notification = Notification.find(params[:id]) notification.update_attribute('dismissed', true) respond_to do |format| format.js { render :update do |page| page.remove "system_message_#{notification.id}" end } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems