-
-
Save Fercell/b7125354e1d3608bf7f52ca8a55813c5 to your computer and use it in GitHub Desktop.
This file contains 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
def inactive? | |
case self.class | |
when Load | |
binding.pry | |
status.eql?('canceled') | |
when Truck, Trailer | |
status.eql?('disabled') | |
when Customer | |
status.eql?('inactive') | |
when Driver | |
status.eql?('suspended') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment