Module: PreparationTypesHelper

Defined in:
app/helpers/preparation_types_helper.rb

Instance Method Summary (collapse)

Instance Method Details



8
9
10
11
# File 'app/helpers/preparation_types_helper.rb', line 8

def preparation_type_link(preparation_type)
  return nil if preparation_type.nil?
  link_to(preparation_type_tag(preparation_type).html_safe, preparation_type)
end

- (Object) preparation_type_tag(preparation_type)



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

def preparation_type_tag(preparation_type)
  return nil if preparation_type.nil?
  preparation_type.name
end

- (Object) preparation_types_search_form



13
14
15
# File 'app/helpers/preparation_types_helper.rb', line 13

def preparation_types_search_form
  render('/preparation_types/quick_search_form')
end