Class: Refinery::Pages::Url::Marketable

Inherits:
Refinery::Pages::Url show all
Defined in:
pages/lib/refinery/pages/url.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Refinery::Pages::Url

build, #initialize

Constructor Details

This class inherits a constructor from Refinery::Pages::Url

Class Method Details

.handle?(page) ⇒ Boolean

Returns:

  • (Boolean)


35
36
37
# File 'pages/lib/refinery/pages/url.rb', line 35

def self.handle?(page)
  Refinery::Pages.marketable_urls
end

Instance Method Details

#urlObject



39
40
41
42
# File 'pages/lib/refinery/pages/url.rb', line 39

def url
  url_hash = base_url_hash.merge(:path => page.nested_url, :id => nil)
  with_locale_param(url_hash)
end