Module: StatAnchorsHelper
- Defined in:
- app/helpers/stat_anchors_helper.rb
Instance Method Summary collapse
Instance Method Details
#stat_anchor_attrs(anchor) ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/helpers/stat_anchors_helper.rb', line 4 def stat_anchor_attrs(anchor) {}.tap do |attrs| attrs[:class] = %w[nav-link gl-display-flex gl-align-items-center] << extra_classes(anchor) attrs[:itemprop] = anchor.itemprop if anchor.itemprop attrs[:data] = anchor.data if anchor.data end end |