Class: EdgarHelper::RemoteLinkRenderer
- Inherits:
-
WillPaginate::ActionView::LinkRenderer
- Object
- WillPaginate::ActionView::LinkRenderer
- EdgarHelper::RemoteLinkRenderer
- Defined in:
- app/helpers/edgar_helper.rb
Overview
Instance Method Summary (collapse)
Instance Method Details
- (Object) link(text, target, attributes = {}) (private)
357 358 359 360 361 362 363 364 365 |
# File 'app/helpers/edgar_helper.rb', line 357 def link(text, target, attributes = {}) if target.is_a? Fixnum attributes[:rel] = rel_value(target) target = url(target) end attributes[:href] = target attributes["data-remote"] = true tag(:a, text, attributes) end |