Sha256: de2137efe18eade26cdc42ae36c1ee45816f94a4311dfe1be2dee4716aac5183

Contents?: true

Size: 143 Bytes

Versions: 8

Compression:

Stored size: 143 Bytes

Contents

# frozen_string_literal: true

module ApplicationHelper
  def current_user
    @current_user ||= User.find_by(id: session[:user_id])
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
doorkeeper-mongodb-5.4.0 spec/dummy/app/helpers/application_helper.rb
doorkeeper-mongodb-5.3.0 spec/dummy/app/helpers/application_helper.rb
doorkeeper-mongodb-5.2.3 spec/dummy/app/helpers/application_helper.rb
doorkeeper-sequel-2.4.0 spec/dummy/app/helpers/application_helper.rb
doorkeeper-mongodb-5.2.2 spec/dummy/app/helpers/application_helper.rb
doorkeeper-sequel-2.3.0 spec/dummy/app/helpers/application_helper.rb
doorkeeper-5.4.0.rc1 spec/dummy/app/helpers/application_helper.rb
doorkeeper-mongodb-5.2.1 spec/dummy/app/helpers/application_helper.rb