Sha256: 03011309327f02bd2633f69148e24af73a14ff5d1a51595a5b75ad9bea5f258a
Contents?: true
Size: 407 Bytes
Versions: 21
Compression:
Stored size: 407 Bytes
Contents
module DynamicFieldsets # Select input with one selection possible class SelectField < Field acts_as_field_with_field_options acts_as_field_with_single_answer # @return [Hash] data for the form partial def form_partial_locals(args) super.merge({ :selected_id => value_or_default_for_form(args[:value]).to_i, :collection => self.options }) end end end
Version data entries
21 entries across 21 versions & 1 rubygems