Sha256: f3c84baf0c32e9af896b3203d7b46a835a12e672a03d5fd471b5ba2cd9613821

Contents?: true

Size: 663 Bytes

Versions: 27

Compression:

Stored size: 663 Bytes

Contents

module ErpApp
  module Shared
    class ProfileManagementController < ErpApp::ApplicationController
      before_filter :require_login

      def update_email
        current_user.email = params[:email]
        if current_user.save
          message = "<ul>"
          current_user.errors.collect do |e, m|
            message << "<li>#{e} #{m}</li>"
          end
          message << "</ul>"
          render :json => {:success => true, :message => message}
        else
          render :json => {:success => true, :message => 'Error updating email'}
        end
      end

    end #ProfileManagementController
  end #Desktop
end #ErpApp

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
erp_app-4.2.0 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-4.0.0 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.16 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.15 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.14 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.13 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.12 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.11 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.10 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.9 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.8 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.7 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.6 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.5 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.4 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.3 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.2 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.0.16 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.0.15 app/controllers/erp_app/shared/profile_management_controller.rb
erp_app-3.1.1 app/controllers/erp_app/shared/profile_management_controller.rb