walter/test/dummy/app/controllers/application_controller.rb
2018-10-04 15:16:10 -04:00

11 lines
231 B
Ruby

# frozen_string_literal: true
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
helper_method :current_user
def current_user
OpenStruct.new(id: Random.rand(1..99_999))
end
end