Browse Source

Cleanup decisions controller

pull/6/head
Angel Aviel Domaoan 4 years ago committed by Angel Aviel Domaoan
parent
commit
1952cd5eba
  1. 12
      app/controllers/decisions_controller.rb
  2. 4
      config/routes.rb

12
app/controllers/decisions_controller.rb

@ -1,17 +1,9 @@
# frozen_string_literal: true
class DecisionsController < ApplicationController
load_and_authorize_resource :jurisprudence, class: "Cdao::Jurisprudence"
def index; end
def new; end
def edit; end
def show; end
def create; end
def update; end
def destroy; end
end

4
config/routes.rb

@ -3,9 +3,9 @@ Rails.application.routes.draw do
root to: "home#index"
resources :case_doctrines
resources :case_doctrines, only: %i[index]
resources :documents, only: %i[index show]
resources :decisions
resources :decisions, only: %i[index show]
resources :subject_indexes
namespace :api, defaults: { format: :json } do

Loading…
Cancel
Save