app/controllers/alchemy/admin/base_controller.rb
# Returns the current site for admin controllers.
#
Returns the current site for admin controllers.
Returns the current site for admin controllers .
def current_alchemy_site
        @current_alchemy_site ||= begin
          site_id = params[:site_id] || session[:alchemy_site_id]
          site = Site.find_by(id: site_id) || super
          session[:alchemy_site_id] = site.id
          site
        end
      end
def current_alchemy_site @current_alchemy_site ||= begin site_id = params [ :site_id ] || session [ :alchemy_site_id ] site = Site . find_by ( id : site_id ) || super session [ :alchemy_site_id ] = site . id site end end
Returns the current site for admin controllers.
Returns the current site for admin controllers .