move commission to origami

This commit is contained in:
Zin Lin Phyo
2017-08-21 16:31:04 +06:30
parent 618f5f3b7c
commit f26bc83b42
20 changed files with 312 additions and 138 deletions

View File

@@ -1,5 +1,5 @@
class CommissionersController < ApplicationController
before_action :set_commissioner, only: [:show, :edit, :update, :destroy]
class Origami::CommissionersController < BaseOrigamiController
# before_action :set_commissioner, only: [:show, :edit, :update, :destroy]
# GET /commissioners
# GET /commissioners.json

View File

@@ -1,5 +1,5 @@
class CommissionsController < ApplicationController
before_action :set_commission, only: [:show, :edit, :update, :destroy]
class Origami::CommissionsController < BaseOrigamiController
# before_action :set_commission, only: [:show, :edit, :update, :destroy]
# GET /commissions
# GET /commissions.json
@@ -56,7 +56,7 @@ class CommissionsController < ApplicationController
def destroy
@commission.destroy
respond_to do |format|
format.html { redirect_to commissions_url, notice: 'Commission was successfully destroyed.' }
format.html { redirect_to origami_commissions_path, notice: 'Commission was successfully destroyed.' }
format.json { head :no_content }
end
end