Sha256: ac2bc5f598297b46692be89bfe69d91a8bdec4c652b746d5b3ccaa118f17c7d1
Contents?: true
Size: 367 Bytes
Versions: 185
Compression:
Stored size: 367 Bytes
Contents
module SubjectsHelper NAME_MAX_LENGTH = 30 # Return a link to this subject with the name def link_name(subject, options = {}) link_to subject.name, subject, options end # Return the truncated name def truncate_name(name, options={}) options = {:length => NAME_MAX_LENGTH, :separator => ' '}.merge options h truncate(name,options) end end
Version data entries
185 entries across 185 versions & 4 rubygems