Merge pull request #5486 from betagouv/dev
This commit is contained in:
commit
503ddf5164
2 changed files with 1 additions and 4 deletions
|
@ -12,7 +12,7 @@ class ApiEntrepriseService
|
||||||
return nil if etablissement_params.empty?
|
return nil if etablissement_params.empty?
|
||||||
|
|
||||||
etablissement = dossier_or_champ.build_etablissement(etablissement_params)
|
etablissement = dossier_or_champ.build_etablissement(etablissement_params)
|
||||||
etablissement.save
|
etablissement.save!
|
||||||
|
|
||||||
[
|
[
|
||||||
ApiEntreprise::EntrepriseJob, ApiEntreprise::AssociationJob, ApiEntreprise::ExercicesJob,
|
ApiEntreprise::EntrepriseJob, ApiEntreprise::AssociationJob, ApiEntreprise::ExercicesJob,
|
||||||
|
|
|
@ -31,9 +31,6 @@ module TPS
|
||||||
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
|
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
|
||||||
config.i18n.available_locales = [:fr]
|
config.i18n.available_locales = [:fr]
|
||||||
|
|
||||||
config.paths.add "#{config.root}/lib", eager_load: true
|
|
||||||
config.paths.add "#{config.root}/app/controllers/concerns", eager_load: true
|
|
||||||
|
|
||||||
config.assets.paths << Rails.root.join('app', 'assets', 'javascript')
|
config.assets.paths << Rails.root.join('app', 'assets', 'javascript')
|
||||||
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
|
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
|
||||||
config.assets.precompile += ['.woff']
|
config.assets.precompile += ['.woff']
|
||||||
|
|
Loading…
Reference in a new issue