Permalink
Browse files

removed .value from the InquirySetting method calls as these return a…

… string, which does not have the value method.
  • Loading branch information...
magpieuk committed Oct 7, 2010
1 parent 2bc1018 commit 6d18557291b994f8f85c0bd83e8471def0b4e903
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/mailers/inquiry_mailer.rb
@@ -1,17 +1,17 @@
class InquiryMailer < ActionMailer::Base
def confirmation(inquiry, request)
- subject InquirySetting.confirmation_subject.value
+ subject InquirySetting.confirmation_subject
recipients inquiry.email
from "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
- reply_to InquirySetting.notification_recipients.value.split(',').first
+ reply_to InquirySetting.notification_recipients.split(',').first
sent_on Time.now
@inquiry = inquiry
end
def notification(inquiry, request)
- subject InquirySetting.notification_subject.value
- recipients InquirySetting.notification_recipients.value
+ subject InquirySetting.notification_subject
+ recipients InquirySetting.notification_recipients
from "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
sent_on Time.now
@inquiry = inquiry

0 comments on commit 6d18557

Please sign in to comment.