module NotifiablyAudited module NotifiablyAuditedHelpers def notifiably_audited(script) user_id = current_user.id rescue nil html = '' html += subscribe_to "/notifiably_audited/#{user_id}" end end end