From c9b29f452bcdbfa891c1171745c6e85afedd3101 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Mon, 8 Jul 2019 18:40:41 +0500 Subject: [PATCH] Fix code style --- app/models/passport.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/models/passport.rb b/app/models/passport.rb index 68d5fbd..852b1b0 100644 --- a/app/models/passport.rb +++ b/app/models/passport.rb @@ -11,11 +11,14 @@ class Passport < ApplicationRecord has_many_attached :images - has_many :passport_maps, dependent: :restrict_with_exception + has_many :passport_maps, + dependent: :restrict_with_exception - has_many :passport_confirmations, dependent: :restrict_with_exception + has_many :passport_confirmations, + dependent: :restrict_with_exception - accepts_nested_attributes_for :passport_maps, reject_if: :blank_passport_map? + accepts_nested_attributes_for :passport_maps, + reject_if: :blank_passport_map? ############### # Validations #