Class: Vendor

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

Instance Method Summary collapse

Instance Method Details

#count_test_plansObject



10
11
12
# File 'app/models/vendor.rb', line 10

def count_test_plans
  test_plans.count
end

#editable_by?(vendor_user) ⇒ Boolean



18
19
20
# File 'app/models/vendor.rb', line 18

def editable_by?(vendor_user)
  user == vendor_user
end

#to_sObject



14
15
16
# File 'app/models/vendor.rb', line 14

def to_s
  public_id
end