Last active
December 17, 2015 18:18
-
-
Save vrybas/5651863 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
included do | |
scope :processing, where(state: 'processing') | |
scope :error, where(arel_table[:state].matches('%failed')) | |
scope :completed, where(state: %w( converted uploaded protected )) | |
end | |
. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment