2 class ProfileSectionsController < ApplicationController
5 before_action :authorize_web
6 before_action :set_locale
8 authorize_resource :class => :profile
10 before_action :check_database_readable
11 before_action :check_database_writable, :only => [:update]
17 flash[:notice] = t ".success"
18 redirect_to user_path(current_user)
20 flash.now[:error] = t ".failure"