Sha256: 96ef317bf3de9818745449ff065ff3e0695b71dae58e8ac02494dff62934364a

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

:ruby
  js_data = {
    :csspath => field.css_location,
    :jspath => field.js_location,
    :options => field.config,
    :locations => field.assets
  }

= form.text_area field.method_name, field.html_attributes.reverse_merge(:data => { :richtext => 'codemirror', :options => js_data.to_json }).reverse_merge((hdv = field.html_default_value).nil? ? { :value => field.formatted_value } : { :value => hdv })

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_admin-0.5.0 app/views/rails_admin/main/_form_code_mirror.html.haml