Class: SecureLink::Link
- Inherits:
-
Object
- Object
- SecureLink::Link
- Defined in:
- lib/secure_link/link.rb
Instance Method Summary collapse
Instance Method Details
#link_to_secured(name, options = {}, html_options = nil) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/secure_link/link.rb', line 3 def link_to_secured(name, = {}, = nil) url = url_for() check_url = url unless ENV["RAILS_RELATIVE_URL_ROOT"].blank? check_url = check_url.gsub(ENV["RAILS_RELATIVE_URL_ROOT"], "") end method = ? [:method] : nil if (check_url, method) return link_to_open(name, url, ) end return "" end |