Reputation: 490323
I've just inherited a website built with Ruby on Rails. I have never used the language before.
One thing I wanted to know is about Gems - my host only supports a few. I figure a Gem is like a library with PHP - for example, the mysql library is compiled with most PHP packages.
So I was wondering, does the following short code sample require a Gem, or is it too succinct to know?
class EnquiryMailer < ActionMailer::Base
def enquiry enquiry_details
@enquiry = enquiry_details
recipients '[email protected]'
bcc ['[email protected]']
from "#{@enquiry.email}"
subject "Web Enquiry"
sent_on Time.now
end
end
Thanks
Upvotes: 0
Views: 72
Reputation: 6383
Jed is not wrong about it depending on the ActionMailer gem
However, ActionMailer is part of Rails, so if your host supports the Rails version that this application is in, you'll be fine.
That code snippet does not seem to depend on any gems that Rails doesn't itself provide, but as you can guess, it's hard to tell with such a limited sample
Upvotes: 1
Reputation: 14671
ActionMailer is a gem, that depends on other gems. so, yes, it does.
Upvotes: 3