Module: Blazer::BaseHelper
- Defined in:
- app/helpers/blazer/base_helper.rb
Instance Method Summary collapse
Instance Method Details
#format_value(key, value) ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/helpers/blazer/base_helper.rb', line 11 def format_value(key, value) if value.is_a?(Integer) && !key.to_s.end_with?("id") number_with_delimiter(value) else value end end |
#title(title = nil) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/helpers/blazer/base_helper.rb', line 3 def title(title = nil) if title content_for(:title) { title } else content_for?(:title) ? content_for(:title) : nil end end |