Class: Locomotive::CurrentSiteController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/locomotive/current_site_controller.rb

Instance Method Summary collapse

Methods included from ActionController::Ssl

#require_ssl

Methods included from ActionController::UrlHelpers

#current_site_public_url, #public_page_url, #switch_to_site_url

Methods included from ActionController::SectionHelpers

#sections

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

#editObject



20
21
22
23
# File 'app/controllers/locomotive/current_site_controller.rb', line 20

def edit
  @site = current_site
  respond_with @site
end

#updateObject



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_path(new_host_if_subdomain_changed)
end