Module: SolidusSeo::Helpers::UrlHelper
- Included in:
- Model
- Defined in:
- lib/solidus_seo/helpers/url_helper.rb
Instance Method Summary collapse
- #default_url_options ⇒ Object
- #route_helper ⇒ Object
- #spree_route_helper ⇒ Object
- #store_host ⇒ Object
- #url_helper ⇒ Object
Instance Method Details
#default_url_options ⇒ Object
16 17 18 |
# File 'lib/solidus_seo/helpers/url_helper.rb', line 16 def ActionController::Base. end |
#route_helper ⇒ Object
8 9 10 |
# File 'lib/solidus_seo/helpers/url_helper.rb', line 8 def route_helper Rails.application.routes.url_helpers end |
#spree_route_helper ⇒ Object
12 13 14 |
# File 'lib/solidus_seo/helpers/url_helper.rb', line 12 def spree_route_helper Spree::Core::Engine.routes.url_helpers end |
#store_host ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/solidus_seo/helpers/url_helper.rb', line 20 def store_host @store_host ||= begin store_url = Spree::Store.default.url store_url = "http#{'s' if ssl?}://#{store_url}" unless store_url =~ /^https?/ store_url end end |
#url_helper ⇒ Object
4 5 6 |
# File 'lib/solidus_seo/helpers/url_helper.rb', line 4 def url_helper ActionController::Base.helpers end |