kaize/deadline_camp

View on GitHub
app/controllers/web/accounts_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Web::AccountsController < Web::ApplicationController

  before_filter :authenticate_member!

  def show
  end

  def edit
    @member = current_member.becomes(MemberType)
  end

  def update
    @member = current_member.becomes(MemberType)

    if @member.update_attributes(params[:member])
      flash[:success] = flash_translate(:success)
      redirect_to edit_account_path
    else
      render :action => :edit
    end
  end

end