Skip to content

Conversation

@kaosf
Copy link

@kaosf kaosf commented Aug 23, 2013

:time_to_live? is always evaluated as true, so validates_presence_of :collapse_key is always enabled in spite of whether time_to_live is nil or not.

You might fix it from if to , if:.

References;

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.

1 participant