Skip to content

Commit

Permalink
Fixing bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Roendal committed Jul 19, 2011
1 parent 2ff8a96 commit 9292baf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/mailers/notification_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def new_notification_email(notification,receiver)
@receiver = receiver
subject = message.subject.to_s
subject = strip_tags(subject) unless subject.html_safe?
mail(:to => receiver.send(Mailboxer.email_method), :subject => t('mailboxer.notification_mailere.subject', :subject => subject)) do |format|
mail(:to => receiver.send(Mailboxer.email_method), :subject => t('mailboxer.notification_mailer.subject', :subject => subject)) do |format|
format.html {render __method__}
format.text {render __method__}
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
class AddNotifiedObjectRemoveObject < ActiveRecord::Migration
class AddNotifiedObject < ActiveRecord::Migration
def self.up
change_table :notifications do |t|
t.remove :object
t.references :notified_object, :polymorphic => true
end
end

def self.down
change_table :notifications do |t|
t.remove :notified_object
t.references :object, :polymorphic => true
end
end
end
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
class AddNotifiedObjectRemoveObject < ActiveRecord::Migration
class AddNotifiedObject < ActiveRecord::Migration
def self.up
change_table :notifications do |t|
t.remove :object
t.references :notified_object, :polymorphic => true
end
end

def self.down
change_table :notifications do |t|
t.remove :notified_object
t.references :object, :polymorphic => true
end
end
end

0 comments on commit 9292baf

Please sign in to comment.