Module: Watchtower::ControllerBase::InstanceMethods

Defined in:
lib/watchtower/controller_base.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



18
19
20
# File 'lib/watchtower/controller_base.rb', line 18

def destroy
  @watched_exception.destroy
end

#destroy_multipleObject



22
23
24
25
26
27
28
# File 'lib/watchtower/controller_base.rb', line 22

def destroy_multiple
  @deleted_exceptions = WatchedException.find_all_by_id(params[:id].split(",").map(&:strip))
  @deleted_exceptions.each do |watched_exception|
    watched_exception.destroy
  end
  index
end

#indexObject



12
13
14
# File 'lib/watchtower/controller_base.rb', line 12

def index
  @watched_exceptions = WatchedExceptionsPresenter.new(params)
end

#showObject



16
# File 'lib/watchtower/controller_base.rb', line 16

def show; end