Sha256: d26e17a752019d9725687bb8a08ecf7bca334881b9d5dc593c9283716291fd2d
Contents?: true
Size: 687 Bytes
Versions: 1124
Compression:
Stored size: 687 Bytes
Contents
# frozen_string_literal: true module Playbook module Forms class Builder def collection_select(name, collection, value_method, text_method, options = {}, html_options = {}, props: {}) props[:label] = @template.label(@object_name, name) if props[:label] == true options[:skip_default_ids] = false unless options.key?(:skip_default_ids) options[:prompt] = props[:blank_selection] || "" html_options[:required] = "required" if props[:required] input = super(name, collection, value_method, text_method, options, html_options) @template.pb_rails("select", props: props) do input end end end end end
Version data entries
1,124 entries across 1,124 versions & 1 rubygems