app/controllers/msip/admin/fuentesprensa_controller.rb in msip-2.2.0.alfa3 vs app/controllers/msip/admin/fuentesprensa_controller.rb in msip-2.2.0.beta1
- old
+ new
@@ -1,22 +1,23 @@
+# frozen_string_literal: true
+
module Msip
module Admin
class FuentesprensaController < Msip::Admin::BasicasController
- before_action :set_fuenteprensa,
+ before_action :set_fuenteprensa,
only: [:show, :edit, :update, :destroy]
- load_and_authorize_resource class: Msip::Fuenteprensa
+ load_and_authorize_resource class: Msip::Fuenteprensa
- def clase
+ def clase
"Msip::Fuenteprensa"
end
def set_fuenteprensa
@basica = Fuenteprensa.find(params[:id])
end
def fuenteprensa_params
params.require(:fuenteprensa).permit(*atributos_form)
end
-
end
end
end