Changeset 1174

Show
Ignore:
Timestamp:
06/24/08 20:49:40 (7 months ago)
Author:
piyawat
Message:

fix: @email to @mail

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/controllers/email_controller.rb

    r1173 r1174  
    7272  def create_mail_from_params 
    7373    if params[:mail].is_a?(Hash) 
    74       @email = ContactMail.new( 
     74      @mail = ContactMail.new( 
    7575        params[:mail][:name], 
    7676        params[:mail][:address], 
     
    8181      ) 
    8282    else 
    83       @email = nil 
     83      @mail = nil 
    8484    end 
    8585    unless @mail.nil? || @mail.valid?