I have some email setting in development.rb which i want to access in my controller.
Settings in development.rb
are:
config.notify_submited_transaction = 'anil@swiftsetup.com,anildbest83@gmail.com'
config.notify_approved_transaction = 'anil@swiftsetup.com'
In my controller/action I am trying this:
@to = Rails.env.notify_submited_transaction
@subject = 'AM - Vendor Submitted Transaction'
AmMailer.vendor_submited_transaction(@to, @subject, current_user).deliver
This though results in error:
undefined method `notify_submited_transaction'
I am not sure how to get config value I've set.
Thanks for any help.