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.3.7 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.6 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.5 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.4 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.3 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.2 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.1 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.3.0 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.2.27 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.2.26 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.2.25 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.2.24 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.2.23 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.2.22 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.2.21 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.2.20 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.2.19 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.2.18 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.2.17 app/controllers/concerns/devise_current_attributes.rb
bullet_train-1.2.16 app/controllers/concerns/devise_current_attributes.rb