Sha256: fd7143ae53157e67da689a662680a9555514115a9c77d0b67b3233d42151c1b6

Contents?: true

Size: 262 Bytes

Versions: 4

Compression:

Stored size: 262 Bytes

Contents

module Homeland::Note
  module ApplicationHelper
    def note_title_tag(note, opts = {})
      opts[:limit] ||= 50
      return '' if note.blank?
      return '' if note.title.blank?
      truncate(note.title.delete('#'), length: opts[:limit])
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
homeland-note-0.2.2 app/helpers/homeland/note/application_helper.rb
homeland-note-0.2.1 app/helpers/homeland/note/application_helper.rb
homeland-note-0.2.0 app/helpers/homeland/note/application_helper.rb
homeland-note-0.1.3 app/helpers/homeland/note/application_helper.rb