Sha256: 72cb4349cf17501f4b6c55bf44704b68f36c8758b2783019c04852ec5a113cb4

Contents?: true

Size: 455 Bytes

Versions: 4

Compression:

Stored size: 455 Bytes

Contents

class ApplicationController < ActionController::Base
  @@current_user = User.find_or_create_by_full_name("Demo User")

  def self.current_user=(user)
    @@current_user = user
  end

  def current_user
    @@current_user
  end
  helper_method :current_user

  def destroy_user_session_path
    ''
  end
  helper_method :destroy_user_session_path

  def authenticate_user!
    true
  end

  def anybody_signed_in?
    true
  end
  protect_from_forgery
end

Version data entries

4 entries across 4 versions & 4 rubygems

Version Path
noodall-components-promo-driver-1.0.0 test/dummy/app/controllers/application_controller.rb
noodall-components-quote-1.0.0 test/dummy/app/controllers/application_controller.rb
noodall-components-quicklinks-1.0.0 test/dummy/app/controllers/application_controller.rb
noodall-components-disqus-comments-1.0.0 test/dummy/app/controllers/application_controller.rb