Sha256: 07f232f5bcce8c803c9bcd168763e5d06ee705a780641e919bda244f81708fe6
Contents?: true
Size: 764 Bytes
Versions: 5
Compression:
Stored size: 764 Bytes
Contents
# frozen_string_literal: true require_dependency "social_networking/application_controller" module SocialNetworking # Manage profile icons. class ProfileIconController < ApplicationController skip_before_action :verify_authenticity_token def save profile = Profile.find(profile_icon_params[:profile_id]) profile.icon_name = profile_icon_params[:icon_name] profile.save respond_to do |format| format.html { render nothing: true, status: :accepted } format.js { render nothing: true, status: :accepted } format.json { render nothing: true, status: :accepted } end end private def profile_icon_params params.require(:profile).permit(:profile_id, :icon_name) end end end
Version data entries
5 entries across 5 versions & 1 rubygems