Module: PagesHelper
- Defined in:
- app/helpers/pages_helper.rb
Instance Method Summary collapse
Instance Method Details
#list_name(page, len, with_path = false) ⇒ Object
4 5 6 |
# File 'app/helpers/pages_helper.rb', line 4 def list_name(page, len, with_path = false) return (with_path ? page.full_path : page.name).right_truncate(len) + (current_user.is_favourite_page?(page) ? "*" : "") end |