Add Cadastre table
This commit is contained in:
parent
0f93aba6bc
commit
b5f2163c51
4 changed files with 56 additions and 1 deletions
7
app/models/cadastre.rb
Normal file
7
app/models/cadastre.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class Cadastre < ActiveRecord::Base
|
||||
belongs_to :dossier
|
||||
|
||||
def geometry
|
||||
JSON.parse(read_attribute(:geometry))
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue