summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Bernloehr <Heiko.Bernloehr@FreeIT.de>2017-03-11 03:03:45 +0100
committerHeiko Bernloehr <Heiko.Bernloehr@FreeIT.de>2017-03-11 03:03:45 +0100
commitc127bbee594514519db4f142a0db6ac6b3dbcdd9 (patch)
tree81755e85f4aa2d61abfe2532db34877224273c33
parent6b0fb87a34f26ae0234315f52201ddd9ca88d0b1 (diff)
downloadecs-c127bbee594514519db4f142a0db6ac6b3dbcdd9.tar.gz
ecs-c127bbee594514519db4f142a0db6ac6b3dbcdd9.zip
Replace undefined method #returning.
-rw-r--r--app/helpers/admin/participants_helper.rb7
-rw-r--r--app/helpers/admin/ressources_helper.rb4
2 files changed, 4 insertions, 7 deletions
diff --git a/app/helpers/admin/participants_helper.rb b/app/helpers/admin/participants_helper.rb
index 6d90ed5..2632a48 100644
--- a/app/helpers/admin/participants_helper.rb
+++ b/app/helpers/admin/participants_helper.rb
@@ -24,10 +24,9 @@ module Admin::ParticipantsHelper
# ist still not saved. This collection is reused in the form.fields_for method.
# (form.fields_for :identities ...)
def setup_participant(participant)
- returning(participant) do |p|
- p.identities.build
- p.communities.build
- end
+ participant.identities.build
+ participant.communities.build
+ participant
end
def button_to_reset(participant, list_anonymous, action_buttons)
diff --git a/app/helpers/admin/ressources_helper.rb b/app/helpers/admin/ressources_helper.rb
index 29b64dc..ce05720 100644
--- a/app/helpers/admin/ressources_helper.rb
+++ b/app/helpers/admin/ressources_helper.rb
@@ -19,9 +19,7 @@
module Admin::RessourcesHelper
def setup_ressource(ressource)
- returning(ressource) do |r|
- # setup more
- end
+ ressource
end
end