Sha256: ef5a0cf5d574989f7e80bcd2851cc40e3520358c0d34cd832ba197070fc14f46
Contents?: true
Size: 370 Bytes
Versions: 13
Compression:
Stored size: 370 Bytes
Contents
# frozen_string_literal: true class TalkieController < ApplicationController include Talkie::Controller before_action :authorize! protected def authorize! if !current_permission.allow?(params[:action], current_comment) redirect_back fallback_location: main_app.root_url, status: :unauthorized end end def current_comment nil end end
Version data entries
13 entries across 13 versions & 1 rubygems