I have email settings in development.rb that I want to receive in my controller.
development.rb
settings:
config.notify_submited_transaction = ' anil@swiftsetup.com , anildbest83@gmail.com ' config.notify_approved_transaction = ' anil@swiftsetup.com '
In my controller / action, I am trying to do this:
@to = Rails.env.notify_submited_transaction @subject = 'AM - Vendor Submitted Transaction' AmMailer.vendor_submited_transaction(@to, @subject, current_user).deliver
This results in an error:
undefined method `notify_submited_transaction'
I am not sure how to get the configuration value that I set.
Thanks for any help.
source share