lib/maily/mailer.rb in maily-0.1.0 vs lib/maily/mailer.rb in maily-0.3.0
- old
+ new
@@ -10,10 +10,10 @@
self.emails = self.class.build_emails(methods, name)
self.collection << self
end
def self.all
- Maily.build_emails if collection.nil?
+ Maily.load_emails_and_hooks if collection.nil?
collection
end
def self.find(mailer_name)
all.find { |mailer| mailer.name == mailer_name }