Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 814 Bytes
1 | class EmailNotify |
2 | def self.logger |
3 | @@logger ||= RAILS_DEFAULT_LOGGER || Logger.new(STDOUT) |
4 | end |
5 | |
6 | def self.send_comment(comment, user) |
7 | return if user.email.blank? |
8 | |
9 | begin |
10 | email = NotificationMailer.create_comment(comment, user) |
11 | EmailNotify.send_message(user,email) |
12 | rescue => err |
13 | logger.error "Unable to send comment email: #{err.inspect}" |
14 | end |
15 | end |
16 | |
17 | def self.send_article(article, user) |
18 | return if user.email.blank? |
19 | |
20 | begin |
21 | email = NotificationMailer.create_article(article, user) |
22 | EmailNotify.send_message(user,email) |
23 | rescue => err |
24 | logger.error "Unable to send article email: #{err.inspect}" |
25 | end |
26 | end |
27 | |
28 | def self.send_message(user, email) |
29 | email.content_type = "text/html; charset=utf-8" |
30 | NotificationMailer.deliver(email) |
31 | end |
32 | end |