1
0
postdoc/app/controllers/application_controller.rb
2020-12-06 21:05:11 +01:00

16 lines
345 B
Ruby

class ApplicationController < ActionController::Base
http_basic_authenticate_with(
name: Rails.application.secrets.username,
password: Rails.application.secrets.password)
helper_method :mailboxes, :current_mailbox
def mailboxes
@mailboxes ||= Mailbox.all.order(name: :asc)
end
def current_mailbox
@mailbox
end
end