Permalink
Browse files

don't overwrite existing membership

  • Loading branch information...
1 parent d56ec5d commit 92511f98750687e816eb308cd67d6a10d68af8de @will-r will-r committed Nov 22, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/views/accounts/_mailing_list.html.haml
  2. +1 −1 app/views/admin/readers/_mailing_list.html.haml
@@ -1,5 +1,5 @@
- fields_for @reader do |rf|
- - @reader.build_mailing_list_membership unless @reader.mailing_list_membership
+ - @reader.mailing_list_membership ||= @reader.build_mailing_list_membership
- rf.fields_for :mailing_list_membership do |mf|
#mailing_list
%h3
@@ -3,7 +3,7 @@
%h3
= t('mailing_list_preferences')
%p
- - @reader.build_mailing_list_membership
+ - @reader.mailing_list_membership ||= @reader.build_mailing_list_membership
- rf.fields_for :mailing_list_membership do |mf|
= mf.check_box :nomail
= mf.label :nomail

0 comments on commit 92511f9

Please sign in to comment.