Commit d5b2df09 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻 Committed by Kaspar
Browse files

putting things for params back in order

parent 960bfdc7
......@@ -23,7 +23,7 @@ Style/LineEndConcatenation:
Style/FrozenStringLiteralComment:
Enabled: false
Style/MultilineOperationIndentation:
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Style/AsciiComments:
......@@ -45,10 +45,13 @@ Metrics/BlockLength:
Exclude:
- 'db/seeds.rb'
<<<<<<< HEAD
Metrics/BlockLength:
Exclude:
- 'test/system/*'
=======
>>>>>>> putting things for params back in order
Layout/AlignHash:
EnforcedLastArgumentHashStyle: ignore_implicit
......@@ -58,7 +61,7 @@ Style/ClassAndModuleChildren:
Style/SymbolArray:
EnforcedStyle: brackets
Style/AlignParameters:
Layout/AlignParameters:
EnforcedStyle: with_fixed_indentation
Style/RegexpLiteral:
......
......@@ -23,9 +23,9 @@ class VolunteerApplicationsController < ApplicationController
def volunteer_params
params.require(:volunteer).permit(
volunteer_attributes: volunteer_attributes.push(
language_skills_attributes, relatives_attributes, schedules_attributes
)
volunteer_attributes: [
volunteer_attributes, language_skills_attributes, relatives_attributes, schedules_attributes
]
)
end
end
......@@ -65,9 +65,8 @@ class VolunteersController < ApplicationController
def volunteer_params
params.require(:volunteer).permit(
volunteer_attributes.push(
language_skills_attributes, relatives_attributes, schedules_attributes
)
volunteer_attributes,
language_skills_attributes, relatives_attributes, schedules_attributes
)
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment