Skip to content

Instantly share code, notes, and snippets.

@vrybas vrybas/convertable.rb
Last active Dec 17, 2015

What would you like to do?
included do
scope :processing, where(state: 'processing')
scope :error, where(arel_table[:state].matches('%failed'))
scope :completed, where(state: %w( converted uploaded protected ))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.