Sha256: 2f2c6bbdaa209e589375539c25724ac274ea6a3251a54e68b14fd8e3da8cba39
Contents?: true
Size: 307 Bytes
Versions: 35
Compression:
Stored size: 307 Bytes
Contents
- f ||= local_assigns[:locals][:f] - if(f.object.prioritizables.empty? rescue true) = f.hidden_field :priority - else = f.input :priority, :collection => (f.object.prioritizables.each_with_index.map{|p,i| [(i+1).ordinalize, p.priority]} + [['Last',f.object.lowest_priority+1]]), :include_blank => false
Version data entries
35 entries across 35 versions & 1 rubygems