Skip to content

Commit

Permalink
Merge pull request refinery#55 from gogogarrett/patch-1
Browse files Browse the repository at this point in the history
Fix to edit confirmation email
  • Loading branch information
parndt committed Jan 26, 2012
2 parents 6425994 + 57ebba5 commit 34e34ed
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/models/refinery/inquiry_setting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ def confirmation_subject(locale='en')

def confirmation_subject=(value)
value.first.keys.each do |locale|
Refinery::Setting.set("inquiry_confirmation_subject_#{locale}".to_sym,
value.first[locale.to_sym],
:scoping => "inquiries")
Refinery::Setting.set("inquiry_confirmation_subject_#{locale}".to_sym, {
:value => value.first[locale.to_sym],
:scoping => "inquiries"
})
end
end

Expand All @@ -28,11 +29,13 @@ def confirmation_message(locale='en')
:scoping => "inquiries")
end


def confirmation_message=(value)
value.first.keys.each do |locale|
Refinery::Setting.set("inquiry_confirmation_message_#{locale}".to_sym,
value.first[locale.to_sym],
:scoping => "inquiries")
Refinery::Setting.set("inquiry_confirmation_message_#{locale}".to_sym, {
:value => value.first[locale.to_sym],
:scoping => "inquiries"
})
end
end

Expand Down

0 comments on commit 34e34ed

Please sign in to comment.