Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Workout
- ...
- enum status: [:needs_revision, :complete]
- property :status, default: :complete
- scope :complete, -> { where(status: :complete) }
- scope :needs_revision, -> { where(status: :needs_revision) }
- ...
- end
Add Comment
Please, Sign In to add comment