Class: Homeland::Note::ApplicationController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Homeland::Note::ApplicationController
- Defined in:
- app/controllers/homeland/note/application_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#current_ability ⇒ Object
10 11 12 |
# File 'app/controllers/homeland/note/application_controller.rb', line 10 def current_ability @current_ability ||= Homeland::Note::Ability.new(current_user) end |
#current_user_notes ⇒ Object
14 15 16 |
# File 'app/controllers/homeland/note/application_controller.rb', line 14 def current_user_notes @current_user_notes ||= ::Note.where(user_id: current_user.id) end |