Class: Comable::Apartment::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Comable::Apartment::ApplicationController
show all
- Includes:
- ApplicationHelper, Comable::ApplicationHelper
- Defined in:
- app/controllers/comable/apartment/application_controller.rb
Instance Method Summary
collapse
#admin_roles, #link_to_save, #store_url_options
Instance Method Details
#current_ability ⇒ Object
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_user ⇒ Object
17
18
19
|
# File 'app/controllers/comable/apartment/application_controller.rb', line 17
def current_comable_user
current_root_user || Comable::User.new
end
|