Sha256: b175565d74a4e78b7cbe7749dd10f6f417a8e9af7401bb12652cdd4aaf1f39b0

Contents?: true

Size: 216 Bytes

Versions: 226

Compression:

Stored size: 216 Bytes

Contents

module DeviseCurrentAttributes
  extend ActiveSupport::Concern

  included do
    before_action :set_current_user
  end

  def set_current_user
    if current_user
      Current.user = current_user
    end
  end
end

Version data entries

226 entries across 226 versions & 1 rubygems

Version Path
bullet_train-1.11.0 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.10.0 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.9.0 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.8.5 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.8.4 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.8.3 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.8.2 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.8.1 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.8.0 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.7.23 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.7.22 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.7.21 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.7.20 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.7.19 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.7.18 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.7.17 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.7.16 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.7.15 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.7.14 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.7.13 app/controllers/concerns/devise_current_attributes.rb