def verify_admin!
    unless ((!params[:account_id].blank?) && (params[:account_id].to_i == current_account.id) && (params[:id].to_i == current_member.id)) || current_member.is_admin?
      flash[:alert] = "Can't access this page"
...

Ruby Rails Security module refac...

by jellisjapan.myopenid.com, May 14, 2010 14:28, 1 refactoring, tagged with rails

I have this method as part ...

1772298f2d14152c13bbd3221e6ab6ec Talk