Class: Comable::Apartment::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
ApplicationHelper, Comable::ApplicationHelper
Defined in:
app/controllers/comable/apartment/application_controller.rb

Instance Method Summary collapse

Methods included from ApplicationHelper

#admin_roles, #link_to_save, #store_url_options

Instance Method Details

#current_abilityObject



13
14
15
# File 'app/controllers/comable/apartment/application_controller.rb', line 13

def current_ability
  Comable::Ability.new(current_comable_user)
end

#current_comable_userObject



17
18
19
# File 'app/controllers/comable/apartment/application_controller.rb', line 17

def current_comable_user
  current_root_user || Comable::User.new
end