Sha256: f2abc466f19c45592e001b063b08a38ffc542f3a54583d0e9fb0baaa2518c301
Contents?: true
Size: 384 Bytes
Versions: 5
Compression:
Stored size: 384 Bytes
Contents
# frozen_string_literal: true module Talkie module Controller extend ActiveSupport::Concern included do delegate :allow?, :comment_form_displayable?, to: :current_permission helper_method :allow?, :comment_form_displayable? end protected def current_permission @current_permission ||= Talkie::Permission.new(current_user) end end end
Version data entries
5 entries across 5 versions & 1 rubygems