Module: CustomersHelper

Defined in:
app/helpers/customers_helper.rb

Instance Method Summary collapse

Instance Method Details

#birthdaysObject



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

def birthdays
  #TODO: birthdays
  0
end

#customers_invalidsObject



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

def customers_invalids
  #TODO: customers_invalids
  Customer.where(:complete => nil).count
end

#index_notes(notes) ⇒ Object



17
18
19
20
21
# File 'app/helpers/customers_helper.rb', line 17

def index_notes(notes)
  if notes.to_s.size>140
    notes[0..139].concat("...")
  end
end


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

def navbar_title
  nil
end