Sha256: 242bf1d1b3a5e6daffb38e0bb2bf68c9e59de36fb0aab1b75775204ef735960a

Contents?: true

Size: 183 Bytes

Versions: 6

Compression:

Stored size: 183 Bytes

Contents

module ApplicationHelper
  @@user = User.create#nil
  
  def current_user
    @@user
  end
  
  def sign_in(user)
    @@user = user
  end
  
  def sign_out
    @@user = nil
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
commontator-1.1.1 spec/dummy/app/helpers/application_helper.rb~
commontator-1.1.0 spec/dummy/app/helpers/application_helper.rb~
commontator-1.0.6 spec/dummy/app/helpers/application_helper.rb~
commontator-1.0.5 spec/dummy/app/helpers/application_helper.rb~
commontator-1.0.4 spec/dummy/app/helpers/application_helper.rb~
commontator-1.0.3 spec/dummy/app/helpers/application_helper.rb~