removed header variable from email layout and header translations. We'll use only the subject as email header
Merge branch 'master' of github.com:catarse/catarse into refactor_notifications
Removed notification type model, added attributes to notification model so we can build older notifications only using data from the model. Changed interface of notification to simplify notification methods and remove notification observer. Changed .create_notification and .create_notification_once to .notify and .notify_once
just tidying up a bit the notifications_mailer spec
fixed root_url in header when we access the site using https (the root URL should always use plain http)
fixed notify_backers (using new Notification interface), the corresponding template, and added .and_call_original to the spec expectations so we can test the actual notification sending code.
solved conflicts, still need to fix some bugs and specs
Merge branch 'master' of github.com:catarse/catarse into refactor_notifications
fixed old create_notification_once call. tidyed up a bit the code
changed link_to for mail_to
DRYed a bit the specs and removed some unnecessary ::
fixed draft in analysis notification
created last_channel method so we can access the last channel associated with a given project without digging deeper in the model
now we render a text template to build the notification subject, we need this to get rid of the old mail_params since we cannot use ruby code inside translations
added channel to notification as projects can belong to multiple channels we want to know which notification was sent to each channel
added method to always retrieve the same update number for a given update
fixed credits_warning notification
added subjects for all notifications as text templates
fixed specs
fixed channel notifications when we do not have a channel for the project