voormedia/rails-erd

View on GitHub
examples/applications/spree/models/adjustment.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Adjustment < ActiveRecord::Base
  belongs_to :order
  belongs_to :source, :polymorphic => true
  belongs_to :originator, :polymorphic => true

  validates :label, :presence => true
  validates :amount, :numericality => true
end