Sha256: 7dfd26adcf6ba37aea4d5b3e5a2b7d3357fbcccafc1fa9a98ca73c8cd2f33d28

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 Bytes

Contents

class RemoteLinkRenderer < WillPaginate::LinkRenderer
  def page_link_or_span(page, span_class = 'current', text = nil)
    text ||= page.to_s
    if page and page != current_page
      @template.link_to_remote text, :url => url_for(page), :method => :get
    else
      @template.content_tag :span, text, :class => span_class
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_tinymce-0.0.1 assets/app/helpers/remote_link_renderer.rb