Class: Refinery::Pages::Url::Normal

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



46
47
48
# File 'pages/lib/refinery/pages/url.rb', line 46

def self.handle?(page)
  page.to_param.present?
end

Instance Method Details

#urlObject



50
51
52
53
# File 'pages/lib/refinery/pages/url.rb', line 50

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