Sha256: d412b6f730b492979f422f51a3325fe73bd8afc99814887dd9afec18be150e08

Contents?: true

Size: 190 Bytes

Versions: 2

Compression:

Stored size: 190 Bytes

Contents

module Hancock::Errors
  extend ActiveSupport::Concern

  included do
    before_action :set_current_user

    def set_current_user
      User.current_user = current_user
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hancock_cms-2.0.0 app/controllers/concerns/hancock/current_user.rb
hancock_cms-1.0.0 app/controllers/concerns/hancock/current_user.rb