Sha256: dc554e2b5f31a24a06cc2e1b22dd1134742897a6a8878339d5e42ebe050565e5
Contents?: true
Size: 641 Bytes
Versions: 64
Compression:
Stored size: 641 Bytes
Contents
= form.simple_fields_for :user, user do |fa| - if (EffectiveOrders.collect_user_fields || []).include?(:salutation) && fa.object.respond_to?(:salutation) - if defined?(fa.object.class::SALUTATIONS) = fa.input :salutation, :as => :select, :collection => fa.object.class::SALUTATIONS, :include_blank => false, :required => true - else = fa.input :salutation, :required => true, :placeholder => 'Salutation' - (EffectiveOrders.collect_user_fields || []).reject { |x| x == :salutation }.each do |field| - if fa.object.respond_to?(field) = fa.input field, :required => true, :placeholder => field.to_s.humanize
Version data entries
64 entries across 64 versions & 1 rubygems