Class: Shoppy::PaymentMethod

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/shoppy/payment_method.rb

Direct Known Subclasses

PaymentMethod

Instance Method Summary collapse

Instance Method Details

#capsObject

Filters



7
# File 'app/models/shoppy/payment_method.rb', line 7

before_save :caps

#nameObject

Validators



10
# File 'app/models/shoppy/payment_method.rb', line 10

validates :name, presence: true

#ordersObject

Relationships



4
# File 'app/models/shoppy/payment_method.rb', line 4

has_many    :orders, dependent: :nullify