Sha256: bb5485883934e5c6accf994098dbcdcb3eebf334e4949c12673eacc44dfa1586

Contents?: true

Size: 229 Bytes

Versions: 16

Compression:

Stored size: 229 Bytes

Contents

= node f, field do
  - base = f.object.class.respond_to?(:base_class) ? f.object.class.base_class : f.object.class
  - list = base.descendants.map do |x|
    - [x.to_s.sub(base.to_s,'').titleize, x.to_s]
  = f.select :type, list

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
bhf-1.0.0.beta16 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta15 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta14 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta13 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta12 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta11 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta10 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta9 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta8 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta7 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta6 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta5 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta4 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta3 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta2 app/views/bhf/form/column/_type.html.haml
bhf-1.0.0.beta1 app/views/bhf/form/column/_type.html.haml