Sha256: b4b1eb76a2efccb40f0bf6d7f8fcdeab9e249ed5ccac77b170302e4848f7ce4d
Contents?: true
Size: 383 Bytes
Versions: 3
Compression:
Stored size: 383 Bytes
Contents
module Blazer module BaseHelper def title(title = nil) if title content_for(:title) { title } else content_for?(:title) ? content_for(:title) : nil end end def format_value(key, value) if value.is_a?(Integer) && !key.to_s.end_with?("id") number_with_delimiter(value) else value end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blazer-1.0.2 | app/helpers/blazer/base_helper.rb |
blazer-1.0.1 | app/helpers/blazer/base_helper.rb |
blazer-1.0.0 | app/helpers/blazer/base_helper.rb |