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

Following rails5.1.2 ActiveSupport::Duration changes #69

Merged
merged 2 commits into from
Jun 27, 2017

Conversation

eisuke
Copy link
Member

@eisuke eisuke commented Jun 27, 2017

@@ -64,8 +64,7 @@ def validate
# ex. wait: 100/daily 200/daily
def parse_option(option, start_at: Time.current)
raise_assertion_error unless option

wait_option = { "jobs" => [], "timeout" => 60.minutes.to_i / 1.minute }
wait_option = { "jobs" => [], "timeout" => (60.minutes / 1.minute).to_i }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[IMO] (60.minutes / 1.minute).to_i is always 60. (60.minutes / 1.minute).to_i doesn't improve readability.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree... aa6abb7

@eisuke eisuke merged commit 4594351 into cookpad:master Jun 27, 2017
@eisuke eisuke deleted the rails5.1.2 branch June 27, 2017 02:32
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

Successfully merging this pull request may close these issues.

2 participants