From 6f77301c8f028da17a9dc73f7805614e45034e11 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 10 Apr 2020 18:53:58 +0500 Subject: [PATCH] Fix code style --- app/policies/settings/passport_policy.rb | 31 ++++-------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/app/policies/settings/passport_policy.rb b/app/policies/settings/passport_policy.rb index 33ca0b9..5279c4e 100644 --- a/app/policies/settings/passport_policy.rb +++ b/app/policies/settings/passport_policy.rb @@ -15,32 +15,11 @@ class Settings::PassportPolicy < ApplicationPolicy def permitted_attributes_for_create %i[ - last_name - first_name - middle_name - sex - date_of_birth - place_of_birth - series - number - issued_by - unit_code - date_of_issue - zip_code - town_type - town_name - settlement_type - settlement_name - district_type - district_name - street_type - street_name - residence_type - residence_name - building_type - building_name - apartment_type - apartment_name + last_name first_name middle_name sex date_of_birth place_of_birth + series number issued_by unit_code date_of_issue zip_code + town_type town_name settlement_type settlement_name district_type + district_name street_type street_name residence_type residence_name + building_type building_name apartment_type apartment_name ].freeze end end