lib/scrivito/link.rb in scrivito_sdk-0.18.1 vs lib/scrivito/link.rb in scrivito_sdk-0.30.0.rc1

- old
+ new

@@ -1,8 +1,10 @@ +require 'active_model/naming' + module Scrivito # This class provides an interfaces for handling CMS Links. - # To format a link for rendering in an html page, use the +cms_path+ or +cms_url+ methods. + # To format a link for rendering in an html page, use the +scrivito_path+ or +scrivito_url+ methods. # @api public class Link extend ActiveModel::Naming @@ -29,10 +31,10 @@ @link_data = link_data.with_indifferent_access end # The link's external url. Only available for external links. # Warning: Do not output the url directly unless you know what you are doing. - # Normally you want to use the +cms_path+ or +cms_url+ methods to format a link. + # Normally you want to use the +scrivito_path+ or +scrivito_url+ methods to format a link. # @api public def url @link_data[:url] end