use capture instead of layout-hack to allow deface overrides

This commit is contained in:
wvengen 2014-04-29 19:21:03 +02:00
parent 83738c8383
commit 3953c21ae2
4 changed files with 6 additions and 4 deletions

View file

@ -1,7 +1,7 @@
= f.input :name
= f.input :description, as: :text, input_html: {rows: 4}
= yield
= captured if defined? captured
= f.input :user_tokens, :as => :string,
:input_html => { 'data-pre' => f.object.users.map(&:token_attributes).to_json }