Sha256: 1030ee07144670cf1da693d5403402ed533cb7a643b507112a6c790a317277b5
Contents?: true
Size: 282 Bytes
Versions: 8
Compression:
Stored size: 282 Bytes
Contents
# frozen_string_literal: true module Authentication def self.included(klass) klass.class_eval do before_action :authenticate_user! around_action :assign_current_user end end def assign_current_user(&block) User.current(current_user, &block) end end
Version data entries
8 entries across 7 versions & 1 rubygems