- valid siren on create file
This commit is contained in:
parent
6e19d3ba67
commit
2b6aba16ac
5 changed files with 67 additions and 3 deletions
7
app/models/siret.rb
Normal file
7
app/models/siret.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class Siret
|
||||
include ActiveModel::Model
|
||||
attr_accessor :siret
|
||||
|
||||
validates_presence_of :siret
|
||||
validates :siret, siret_format: true
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue