Sha256: 6936a1b3404588dc0832d981d54ea3a0e7af79a5e4fd7b02e8542e6cf6f67b5b
Contents?: true
Size: 401 Bytes
Versions: 20
Compression:
Stored size: 401 Bytes
Contents
class UsersController < ApplicationController before_filter :check_whether_standalone before_filter :require_auth layout false def preferences end def update current_user.update_attributes!(user_params) render json: current_user.preferences end private def user_params params.require(:user) .permit(preferences: [Preference.whole_preference_names]) end end
Version data entries
20 entries across 20 versions & 1 rubygems