Class: Breeze::BreezeController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/breeze/breeze_controller.rb

Instance Method Summary collapse

Instance Method Details

#authenticate_ifObject



6
7
8
9
# File 'app/controllers/breeze/breeze_controller.rb', line 6

def authenticate_if
  return unless respond_to? :"authenticate_member!"
  authenticate_member!
end

#current_member_emailObject



11
12
13
14
# File 'app/controllers/breeze/breeze_controller.rb', line 11

def current_member_email
  return "breeze_user" unless respond_to? :current_member
  current_member.email
end