Files
growstuff/app/controllers/application_controller.rb

8 lines
161 B
Ruby

class ApplicationController < ActionController::Base
protect_from_forgery
def current_user
@current_user ||= Member.find(session[:member_id])
end
end