Sha256: 5c9b05f1dfe13b6567720690f91eaa71e0eac8e520d5203a4700e9ebe12e0a26
Contents?: true
Size: 664 Bytes
Versions: 14
Compression:
Stored size: 664 Bytes
Contents
module Locomotive class CurrentSiteMetafieldsController < BaseController account_required & within_site localized before_filter :load_site helper Locomotive::SitesHelper def index authorize @site respond_with(@site) end def update_all authorize @site, :update? service.update_all(params[:site][:metafields]) respond_with @site, location: -> { current_site_metafields_path(current_site) } end private def load_site @site = current_site end def service @service ||= Locomotive::SiteMetafieldsService.new(current_site, current_locomotive_account) end end end
Version data entries
14 entries across 14 versions & 1 rubygems