Sha256: fff0235a12455b5a438a520a6d5c664ef509a95a8f3633bc47589ded20c61a16

Contents?: true

Size: 447 Bytes

Versions: 17

Compression:

Stored size: 447 Bytes

Contents

- resource_class.attribute_names.delete_if { |name| Itsf::Backend.hidden_attributes_for[:edit].include?(name.to_sym) }.each do |name|
  - if form.object.class.columns_hash[name].try(:type) == :hstore
    = simple_fields_for name do |hstore_form|
      - if form.object.send(name).respond_to?(:each)
        - form.object.send(name).each do |key, value|
          = hstore_form.input key, input_html: { value: value }
  - else
    = form.input name

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
itsf_backend-5.0.0.pre app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-4.2.3 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-4.2.2 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-4.2.1 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-4.2.0 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-4.0.1 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-4.0.0 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-3.1.1 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-3.1.0 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-3.0.7 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-3.0.6 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-3.0.5 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-3.0.4 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-3.0.3 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-3.0.2 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-3.0.1 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-3.0.0 app/views/itsf/backend/resource/base/_form.html.haml