Module: LocationsHelper

Defined in:
app/helpers/locations_helper.rb

Instance Method Summary collapse

Instance Method Details

#location_name_tag(location, _options = {}) ⇒ Object


2
3
4
5
6
# File 'app/helpers/locations_helper.rb', line 2

def location_name_tag(location, _options = {})
  return '' if location.blank?
  name = location.is_a?(String) == true ? location : location.name
  link_to(name, location_users_path(name))
end