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