module Silverdot::UrlHelper

Public Class Methods

included(base) click to toggle source
# File lib/silverdot/helpers/url_helper.rb, line 3
def self.included(base)
  base.alias_method_chain :url_for, :alternative
end

Public Instance Methods

url_for_with_alternative(options = nil) click to toggle source
# File lib/silverdot/helpers/url_helper.rb, line 7
def url_for_with_alternative(options = nil)
  case options
  when Alternative
    options.url
  else
    url_for_without_alternative(options)
  end
end