Module: Ticket::Locker

Extended by:
ActiveSupport::Concern
Included in:
Ticket
Defined in:
app/models/ticket/locker.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#locked?Boolean

This means ticket is in a cart and not sold.

Returns:

  • (Boolean)


48
49
50
# File 'app/models/ticket/locker.rb', line 48

def locked?
  !self.cart_id.nil? && !sold? && !comped?
end