class Tolken::SimpleForm::JsonbInput
Private Instance Methods
input(_wrapper_options = {})
click to toggle source
# File lib/tolken/simple_form.rb, line 12 def input(_wrapper_options = {}) safe_join( I18n.available_locales.map do |locale| options = { input_html: { name: "#{object.class.to_s.downcase}[#{attribute_name}][#{locale}]", value: object.public_send(attribute_name)[locale] }, as: input_options[:type].presence || :string } @builder.input(:"#{attribute_name}_#{locale}", options) end ) end
label(_wrapper_options = {})
click to toggle source
# File lib/tolken/simple_form.rb, line 28 def label(_wrapper_options = {}) # label is rendered per translatable field end