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.4.1 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.4.0 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.25 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.24 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.23 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.22 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.21 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.20 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.19 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.18 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.17 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.16 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.15 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.14 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.13 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.12 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.11 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.10 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.9 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.8 app/controllers/concerns/devise_current_attributes.rb