Class: Refinery::Pages::Url::Normal
- Inherits:
-
Refinery::Pages::Url
- Object
- Refinery::Pages::Url
- Refinery::Pages::Url::Normal
- Defined in:
- lib/refinery/pages/url.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Refinery::Pages::Url
Constructor Details
This class inherits a constructor from Refinery::Pages::Url
Class Method Details
.handle?(page) ⇒ Boolean
46 47 48 |
# File 'lib/refinery/pages/url.rb', line 46 def self.handle?(page) page.to_param.present? end |
Instance Method Details
#url ⇒ Object
50 51 52 53 |
# File '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 |