OSDN Git Service

rename lisence to license
[pettanr/pettanr.git] / app / controllers / common_lisences_controller.rb
diff --git a/app/controllers/common_lisences_controller.rb b/app/controllers/common_lisences_controller.rb
deleted file mode 100644 (file)
index 927e460..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-class CommonLisencesController < ApplicationController
-  before_filter :authenticate_author!, :only => [:index, :show]
-  before_filter :authenticate_admin!, :only => [:list, :browse, :new, :edit, :create, :update, :destroy]
-
-  # GET /common_lisences
-  # GET /common_lisences.json
-  def index
-    @common_lisences = CommonLisence.all
-
-    respond_to do |format|
-      format.html # index.html.erb
-      format.json { render json: @common_lisences }
-    end
-  end
-
-  # GET /common_lisences/1
-  # GET /common_lisences/1.json
-  def show
-    @common_lisence = CommonLisence.find(params[:id])
-
-    respond_to do |format|
-      format.html # show.html.erb
-      format.json { render json: @common_lisence }
-    end
-  end
-
-  def list
-    @common_lisences = CommonLisence.all
-
-    respond_to do |format|
-      format.html { render layout: 'system' }
-      format.json { render json: @common_lisences }
-    end
-  end
-
-  def browse
-    @common_lisence = CommonLisence.find(params[:id])
-
-    respond_to do |format|
-      format.html { render layout: 'system' }
-      format.json { render json: @common_lisence }
-    end
-  end
-
-  # GET /common_lisences/new
-  # GET /common_lisences/new.json
-  def new
-    @common_lisence = CommonLisence.new
-
-    respond_to do |format|
-      format.html # new.html.erb
-      format.json { render json: @common_lisence }
-    end
-  end
-
-  # GET /common_lisences/1/edit
-  def edit
-    @common_lisence = CommonLisence.find(params[:id])
-  end
-
-  # POST /common_lisences
-  # POST /common_lisences.json
-  def create
-    @common_lisence = CommonLisence.new(params[:common_lisence])
-
-    respond_to do |format|
-      CommonLisence.transaction do
-        if @common_lisence.save_save
-          format.html { redirect_to :action => :browse, :id => @common_lisence.id, notice: 'Common lisence was successfully created.' }
-          format.json { render json: @common_lisence, status: :created, location: @common_lisence }
-        else
-          format.html { render action: "new" }
-          format.json { render json: @common_lisence.errors, status: :unprocessable_entity }
-        end
-      end
-    end
-  end
-
-  # PUT /common_lisences/1
-  # PUT /common_lisences/1.json
-  def update
-    @common_lisence = CommonLisence.find(params[:id])
-
-    respond_to do |format|
-      if @common_lisence.update_attributes(params[:common_lisence])
-        format.html { redirect_to :action => :browse, :id => @common_lisence.id, notice: 'Common lisence was successfully updated.' }
-        format.json { head :ok }
-      else
-        format.html { render action: "edit" }
-        format.json { render json: @common_lisence.errors, status: :unprocessable_entity }
-      end
-    end
-  end
-
-  # DELETE /common_lisences/1
-  # DELETE /common_lisences/1.json
-  def destroy
-    @common_lisence = CommonLisence.find(params[:id])
-    @common_lisence.destroy
-
-    respond_to do |format|
-      format.html { redirect_to common_lisences_url }
-      format.json { head :ok }
-    end
-  end
-end