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] NoMethodError: undefined method 'months' for an instance of String #8546

Open
gbp opened this issue Jan 20, 2025 · 0 comments · May be fixed by #8547
Open

[ERROR] NoMethodError: undefined method 'months' for an instance of String #8546

gbp opened this issue Jan 20, 2025 · 0 comments · May be fixed by #8547
Assignees
Labels
bug Breaks expected functionality f:framework x:uk

Comments

@gbp
Copy link
Member

gbp commented Jan 20, 2025

When running config_files:set_reject_incoming_at_mta rake task, seeing:

NoMethodError: undefined method 'months' for an instance of String (NoMethodError)

      updated_at: ...options[:age_in_months].months.ago,
                                            ^^^^^^^
./app/models/info_request.rb:526:in) 'InfoRequest.reject_incoming_at_mta'
./lib/tasks/config_files.rake:193:in) 'block (2 levels) in <top (required)>'

@gbp gbp added bug Breaks expected functionality f:framework x:uk labels Jan 20, 2025
gbp added a commit that referenced this issue Jan 20, 2025
Update options passed into `InfoRequest.reject_incoming_at_mta` to
ensure they are cast to integer correct as the method expects. Tests
only pass in integers so we should here too.

Fixes #8546
@gbp gbp linked a pull request Jan 20, 2025 that will close this issue
@gbp gbp self-assigned this Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Breaks expected functionality f:framework x:uk
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant