Module: Watchtower::ControllerBase::InstanceMethods
- Defined in:
- lib/watchtower/controller_base.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
18 19 20 |
# File 'lib/watchtower/controller_base.rb', line 18 def destroy @watched_exception.destroy end |
#destroy_multiple ⇒ Object
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 |
#index ⇒ Object
12 13 14 |
# File 'lib/watchtower/controller_base.rb', line 12 def index @watched_exceptions = WatchedExceptionsPresenter.new(params) end |
#show ⇒ Object
16 |
# File 'lib/watchtower/controller_base.rb', line 16 def show; end |