Sha256: 2d70dd9a0ac0cb1609b7b2c60958d4a44a64134077155ffc132293af4b22d856

Contents?: true

Size: 389 Bytes

Versions: 5

Compression:

Stored size: 389 Bytes

Contents

module Blazer
  module QueriesHelper

    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) and !key.to_s.end_with?("id")
        number_with_delimiter(value)
      else
        value
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blazer-0.0.5 app/helpers/blazer/queries_helper.rb
blazer-0.0.4 app/helpers/blazer/queries_helper.rb
blazer-0.0.3 app/helpers/blazer/queries_helper.rb
blazer-0.0.2 app/helpers/blazer/queries_helper.rb
blazer-0.0.1 app/helpers/blazer/queries_helper.rb