Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/application_controller.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) current_ability



14
15
16
# File 'app/controllers/application_controller.rb', line 14

def current_ability
  @current_ability ||= Ability.new(current_admin_user)
end

- (Object) current_user



18
19
20
# File 'app/controllers/application_controller.rb', line 18

def current_user
  current_admin_user
end

- (Object) mailer_set_url_options



6
7
8
# File 'app/controllers/application_controller.rb', line 6

def mailer_set_url_options
  ActionMailer::Base.default_url_options[:host] = request.host_with_port
end