Sha256: d946420d647ae26aa4a1cbbf0eaedde23d34fa05090024591f7fc40fd050a053

Contents?: true

Size: 172 Bytes

Versions: 6

Compression:

Stored size: 172 Bytes

Contents

module ApplicationHelper
  @@user = 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-4.8.0 spec/dummy/app/helpers/application_helper.rb
commontator-4.7.2 spec/dummy/app/helpers/application_helper.rb
commontator-4.7.1 spec/dummy/app/helpers/application_helper.rb
commontator-4.7.0 spec/dummy/app/helpers/application_helper.rb
commontator-4.6.1 spec/dummy/app/helpers/application_helper.rb
commontator-4.6.0 spec/dummy/app/helpers/application_helper.rb