Class: Locomotive::CurrentSiteController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- Locomotive::CurrentSiteController
- Defined in:
- app/controllers/locomotive/current_site_controller.rb
Instance Method Summary collapse
Methods included from ActionController::UrlHelpers
#current_site_public_url, #public_page_url, #switch_to_site_url
Methods included from ActionController::SectionHelpers
Methods included from ActionController::LocaleHelpers
#back_to_default_site_locale, #current_content_locale, #localized?, #set_back_office_locale, #set_current_content_locale, #setup_i18n_fallbacks
Instance Method Details
#edit ⇒ Object
20 21 22 23 |
# File 'app/controllers/locomotive/current_site_controller.rb', line 20 def edit @site = current_site respond_with @site end |
#update ⇒ Object
25 26 27 28 29 |
# File 'app/controllers/locomotive/current_site_controller.rb', line 25 def update @site = current_site @site.update_attributes(params[:site]) respond_with @site, :location => edit_current_site_url(new_host_if_subdomain_changed) end |