Class: Homeland::Note::ApplicationController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/homeland/note/application_controller.rb

Direct Known Subclasses

NotesController

Instance Method Summary collapse

Instance Method Details

#current_abilityObject



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_notesObject



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