Sha256: f54cbf89c04d668b4534dd49587112261d19502823219f4a4eadf5f170c91329
Contents?: true
Size: 577 Bytes
Versions: 4
Compression:
Stored size: 577 Bytes
Contents
# frozen_string_literal: true module Playbook module PbForm module FormBuilder module SelectField def select(name, choices = nil, options = {}, html_options = {}, props: {}, &block) props[:label] = @template.label(@object_name, name) if props[:label] == true options[:skip_default_ids] = false unless options.has_key?(:skip_default_ids) input = super(name, choices, options, html_options, &block) @template.pb_rails("select", props: props) do input end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems