Method: Binda::ComponentsHelper#prepare_description_for_selections_from_hint_with
- Defined in:
- app/helpers/binda/components_helper.rb
#prepare_description_for_selections_from_hint_with(field_setting) ⇒ String
Prepare description for selections with field setting detail
53 54 55 56 57 58 |
# File 'app/helpers/binda/components_helper.rb', line 53 def prepare_description_for_selections_from_hint_with(field_setting) description = [] description << field_setting.description unless field_setting.description.blank? description << I18n.t("binda.null_is_not_allowed") if !field_setting.allow_null? return description.join('. ') end |