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

Version Path
smalruby-editor-0.4.1-x86-mingw32 app/controllers/users_controller.rb
smalruby-editor-0.4.2-x86-mingw32 app/controllers/users_controller.rb
smalruby-editor-0.4.2 app/controllers/users_controller.rb
smalruby-editor-0.4.1 app/controllers/users_controller.rb
smalruby-editor-0.4.0-x86-mingw32 app/controllers/users_controller.rb
smalruby-editor-0.4.0 app/controllers/users_controller.rb
smalruby-editor-0.3.5-x86-mingw32 app/controllers/users_controller.rb
smalruby-editor-0.3.5 app/controllers/users_controller.rb
smalruby-editor-0.3.4-x86-mingw32 app/controllers/users_controller.rb
smalruby-editor-0.3.4 app/controllers/users_controller.rb
smalruby-editor-0.3.3-x86-mingw32 app/controllers/users_controller.rb
smalruby-editor-0.3.3 app/controllers/users_controller.rb
smalruby-editor-0.3.2-x86-mingw32 app/controllers/users_controller.rb
smalruby-editor-0.3.2 app/controllers/users_controller.rb
smalruby-editor-0.3.1-x86-mingw32 app/controllers/users_controller.rb
smalruby-editor-0.3.1 app/controllers/users_controller.rb
smalruby-editor-0.3.0-x86-mingw32 app/controllers/users_controller.rb
smalruby-editor-0.3.0 app/controllers/users_controller.rb
smalruby-editor-0.2.7-x86-mingw32 app/controllers/users_controller.rb
smalruby-editor-0.2.7 app/controllers/users_controller.rb