Module: Toolbox::Searching::HelperMethods

Includes:
GetText
Defined in:
lib/toolbox/searching.rb

Instance Method Summary collapse

Instance Method Details

#search_field_hint(widgets_list) ⇒ Object



76
77
78
79
80
81
# File 'lib/toolbox/searching.rb', line 76

def search_field_hint widgets_list
  labels = []
  widgets_list.widgets.each {|w| labels << Toolbox::Renderer.new(self, w).label(controller.model_name) }

  _('Search in this fields:') + ' ' + labels.join(', ')
end