I have this model called Region and Admin
# regions.yml
one:
name: test
two:
name: test2
# admins.yml
one:
name: admin1
two:
name: admin2
There's a column on admin.rb defined as json columm (store_accessor: :region_ids). How can I reference regions on admins.yml?
# admins.yml
one:
name: admin1
region_ids: ?????
Aucun commentaire:
Enregistrer un commentaire