Sha256: 50f3dd962d4e1fad415641260bbfcf82e53f8f548be16db8a8e95c150a8d8839

Contents?: true

Size: 206 Bytes

Versions: 2

Compression:

Stored size: 206 Bytes

Contents

module RailsLiveDashboard
  class CleanController < ApplicationController
    def destroy
      Entry.delete_all

      redirect_back fallback_location: dashboard_path, status: :see_other
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_live_dashboard-0.2.0 app/controllers/rails_live_dashboard/clean_controller.rb
rails_live_dashboard-0.1.2 app/controllers/rails_live_dashboard/clean_controller.rb