Sha256: a5656ccdb4fae4ce8d82fbd849b27e4a4e24b4da856b93ffd287c343f0c6b467

Contents?: true

Size: 341 Bytes

Versions: 7

Compression:

Stored size: 341 Bytes

Contents

<%
  values = if @resource.const_defined?(attribute.upcase)
             @resource::const_get(attribute.upcase)
           else
             @resource.send(attribute)
           end
%>

<li id="<%= attribute %>">
  <%= form.label attribute, label_text %>
  <%= form.select attribute, values, options.merge!(:include_blank => false) %>
</li>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typus-3.0.12 app/views/admin/templates/_selector.html.erb
typus-3.0.11 app/views/admin/templates/_selector.html.erb
typus-3.0.11.rc5 app/views/admin/templates/_selector.html.erb
typus-3.0.11.rc4 app/views/admin/templates/_selector.html.erb
typus-3.0.11.rc3 app/views/admin/templates/_selector.html.erb
typus-3.0.11.rc2 app/views/admin/templates/_selector.html.erb
typus-3.0.11.rc1 app/views/admin/templates/_selector.html.erb