Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError (undefined method `references_for' for Mailer:Class): #3

Open
higuita opened this issue Oct 27, 2014 · 2 comments
Open

Comments

@higuita
Copy link

higuita commented Oct 27, 2014

Hi

trying to use the plugin i'm getting this:

Completed 500 Internal Server Error in 1360ms

NoMethodError (undefined method references_for' for Mailer:Class): app/models/mailer.rb:440:inmethod_missing'
app/models/mailer.rb:416:in mail' app/models/mailer.rb:427:ininitialize'
app/models/mailer.rb:440:in method_missing' app/models/journal_observer.rb:26:inafter_create'
app/models/journal.rb:53:in save' app/models/issue.rb:1493:increate_journal'
app/models/issue.rb:159:in create_or_update' app/models/issue.rb:1075:inblock in save_issue_with_child_records'
app/models/issue.rb:1062:in save_issue_with_child_records' app/controllers/issues_controller.rb:179:inupdate'

i'm using
Redmine version 2.3.4.stable.13413
Ruby version 2.1.3-p242 (2014-09-19) [x86_64-linux]
Rails version 3.2.13

redmine_author_notification_emails 1.0.0

Any tip how to fix this? i'm probably missing something :)

Thanks in advance

@darioo
Copy link
Owner

darioo commented Oct 29, 2014

I have tested it only on RM 2.5.1, maybe there is a compatibility problem that older version of RM

@higuita
Copy link
Author

higuita commented Oct 30, 2014

search the git i found that this patch add the references_for to mailer.rb:

redmine/redmine@628d056

This seems a change for redmine 2.4 ... so that is why 2.3 is missing this.

i don't know how do redmine plugins work nor what the references_for do , but can't the function be added to redmine_author_notification_emails/lib/author_notification_emails/patches/mailer_patch.rb?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants