Sha256: f40cd72a5f69b51bcb481cab2ff14eb21cdba0f4ee895cebd769487fd98c46c9
Contents?: true
Size: 194 Bytes
Versions: 2
Compression:
Stored size: 194 Bytes
Contents
module Externallink module ViewHelpers def external_url?(url) request.host != URI(url).host end def internal_url?(url) request.host == URI(url).host end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
externallink-0.0.2 | lib/externallink/view_helpers.rb |
externallink-0.0.1 | lib/externallink/view_helpers.rb |