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

Error with railsexpress ruby #5

Closed
acosonic opened this issue Nov 10, 2017 · 3 comments
Closed

Error with railsexpress ruby #5

acosonic opened this issue Nov 10, 2017 · 3 comments

Comments

@acosonic
Copy link

It sends email to some users, but not all...

redmine@rednune:~/redmine-3.3$ bundle exec rake redmine:send_reminders_all RAILS_ENV=production --trace
** Invoke redmine:send_reminders_all (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:send_reminders_all
rake aborted!
NoMethodError: undefined method `active?' for #<Group:0x000000092aac20>
Did you mean?  acts_like?
/home/redmine/.rvm/gems/ruby-2.3.3-railsexpress/gems/activemodel-4.2.7.1/lib/active_model/attribute_methods.rb:433:in `method_missing'
@acosonic
Copy link
Author

I have resolved it by adding...

def active?
    self.status == STATUS_ACTIVE
  end

to group.rb model...

@acosonic
Copy link
Author

Requested this, but... https://www.redmine.org/issues/27510

@pielat
Copy link

pielat commented Mar 28, 2018

I have similiar problem. I've added your code into group.rb, but still I have error like this:

rake aborted!
NoMethodError: undefined method active?' for #<Group:0x0000556f0add2a60> Did you mean? acts_like? /opt/bitnami/apps/redmine/htdocs/plugins/redmine_reminder/lib/tasks/reminder_all.rake:33:in block (3 levels) in <top (required)>'
/opt/bitnami/apps/redmine/htdocs/plugins/redmine_reminder/lib/tasks/reminder_all.rake:32:in each' /opt/bitnami/apps/redmine/htdocs/plugins/redmine_reminder/lib/tasks/reminder_all.rake:32:in block (2 levels) in <top (required)>'
Tasks: TOP => redmine:send_reminders_all
(See full trace by running task with --trace)

Of course after adding the code I've migrated plugins end restarted apache.

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