Module: CustomersHelper
- Defined in:
- app/helpers/customers_helper.rb
Instance Method Summary collapse
- #birthdays ⇒ Object
- #customers_invalids ⇒ Object
- #index_notes(notes) ⇒ Object
- #navbar_title ⇒ Object
Instance Method Details
#birthdays ⇒ Object
8 9 10 11 |
# File 'app/helpers/customers_helper.rb', line 8 def birthdays #TODO: birthdays 0 end |
#customers_invalids ⇒ Object
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 |
#navbar_title ⇒ Object
13 14 15 |
# File 'app/helpers/customers_helper.rb', line 13 def nil end |