aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/referentials_controller.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb
index a0ca4b4ea..375ce126a 100644
--- a/app/controllers/referentials_controller.rb
+++ b/app/controllers/referentials_controller.rb
@@ -28,6 +28,9 @@ class ReferentialsController < BreadcrumbController
end
protected
+
+ alias_method :referential, :resource
+
def resource
@referential ||= current_organisation.referentials.find_by_id(params[:id])
end
@@ -48,8 +51,9 @@ class ReferentialsController < BreadcrumbController
super
end
- def permitted_params
- params.permit(referential: [ :name, :slug, :prefix, :time_zone, :upper_corner, :lower_corner, :organisation_id ])
+ private
+ def referential_params
+ params.require(:referential).permit( :id, :name, :slug, :prefix, :time_zone, :upper_corner, :lower_corner, :organisation_id, :projection_type, :data_format )
end
end