demarches-normaliennes/app/models/siret.rb
2015-12-03 15:02:22 +01:00

7 lines
139 B
Ruby

class Siret
include ActiveModel::Model
attr_accessor :siret
validates_presence_of :siret
validates :siret, siret_format: true
end