Enable JS in shared translatable test

Due to its markdown editor, the admin draft version page
requires JS to correctly render the draft version form.
This commit is contained in:
Marko Lovic
2018-08-29 16:35:40 +02:00
committed by Javi Martín
parent 05bfa193cd
commit 64d72ca8e7
5 changed files with 20 additions and 115 deletions

View File

@@ -9,7 +9,7 @@ class Legislation::DraftVersion < ActiveRecord::Base
translates :body, touch: true
translates :body_html, touch: true
translates :toc_html, touch: true
globalize_accessors locales: [:en, :es, :fr, :nl, :val, :pt_br]
globalize_accessors
belongs_to :process, class_name: 'Legislation::Process', foreign_key: 'legislation_process_id'
has_many :annotations, class_name: 'Legislation::Annotation', foreign_key: 'legislation_draft_version_id', dependent: :destroy