Sha256: 8cd021af94d3db13f120b24d0473a4d0d584ac520c8dc8beb44c657c4129c2c0

Contents?: true

Size: 370 Bytes

Versions: 11

Compression:

Stored size: 370 Bytes

Contents

class UserOptionsController < ApplicationController
  before_filter :authenticate_user!


  def update
    current_user.view_options = current_user.view_options.merge(params[:options])
    current_user.save!
    head :ok
  end


  def destroy
    current_user.view_options = current_user.view_options.except(params[:key])
    current_user.save!
    head :ok
  end


end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
houston-core-0.6.3 app/controllers/user_options_controller.rb
houston-core-0.6.2 app/controllers/user_options_controller.rb
houston-core-0.6.1 app/controllers/user_options_controller.rb
houston-core-0.6.0 app/controllers/user_options_controller.rb
houston-core-0.5.6 app/controllers/user_options_controller.rb
houston-core-0.5.5 app/controllers/user_options_controller.rb
houston-core-0.5.4 app/controllers/user_options_controller.rb
houston-core-0.5.3 app/controllers/user_options_controller.rb
houston-core-0.5.2 app/controllers/user_options_controller.rb
houston-core-0.5.1 app/controllers/user_options_controller.rb
houston-core-0.5.0 app/controllers/user_options_controller.rb