Closed svoop closed 5 years ago
A little convenience method to do the following:
article.current_state.in? %i(new awaiting_review) # instead of %i(new awaiting_review).include? article.current_state.to_sym
Shouldn't break anything, but allows to write more expressive conditions.
A little convenience method to do the following:
Shouldn't break anything, but allows to write more expressive conditions.