Updated

app/models/petition / email.rb

B
9 lines of codes
0 methods
N/A complexity/method
2 churn
0.0 complexity
31 duplications
class Petition < ActiveRecord::Base class Email < ActiveRecord::Base
  1. Identical code found in 2 nodes Locations: 0 1
  2. Petition::Email has no descriptive comment
belongs_to :petition, touch: true validates :petition, presence: true validates :subject, presence: true, length: { maximum: 100 } validates :body, presence: true, length: { maximum: 5000 } end end