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

Should always update expires_at after save if online_days is defined [fix #108620628] #1907

Merged
merged 3 commits into from
Nov 20, 2015

Conversation

diogob
Copy link
Contributor

@diogob diogob commented Nov 20, 2015

No description provided.

@@ -284,6 +284,12 @@ def open_for_contributions?
pluck_from_database(:open_for_contributions)
end

def update_expires_at
if self.online_days.present?
Copy link
Member

Choose a reason for hiding this comment

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

i think that we should check if online_date is present too

devton added a commit that referenced this pull request Nov 20, 2015
Should always update expires_at after save if online_days is defined [fix #108620628]
@devton devton merged commit f964f12 into master Nov 20, 2015
@devton devton deleted the fix_expires_at branch May 14, 2016 01:10
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