Module: Ticket::Locker
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#locked? ⇒ Boolean
This means ticket is in a cart and not sold.
Instance Method Details
#locked? ⇒ Boolean
This means ticket is in a cart and not sold.
48 49 50 |
# File 'app/models/ticket/locker.rb', line 48 def locked? !self.cart_id.nil? && !sold? && !comped? end |