- elsif @user_block.update_attributes({
- :ends_at => Time.now.getutc() + @block_period.hours,
- :reason => params[:user_block][:reason],
- :needs_view => params[:user_block][:needs_view]
- }, :without_protection => true)
- flash[:notice] = t('user_block.update.success')
+ elsif @user_block.update_attributes(
+ :ends_at => Time.now.getutc + @block_period.hours,
+ :reason => params[:user_block][:reason],
+ :needs_view => params[:user_block][:needs_view]
+ )
+ flash[:notice] = t("user_block.update.success")