Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #1727: actionmailer_move_ATtemplate_patch.diff

File actionmailer_move_ATtemplate_patch.diff, 0.7 kB (added by orderthruchaos@gmail.com, 3 years ago)

Patch for this ticket.

  • base.rb

    old new  
    165165    # remain uninitialized (useful when you only need to invoke the "receive" 
    166166    # method, for instance). 
    167167    def initialize(method_name=nil, *parameters) #:nodoc: 
     168      @template = method_name if @template.nil? 
    168169      create!(method_name, *parameters) if method_name  
    169170    end 
    170171 
     
    175176      @charset = @@default_charset.dup 
    176177      @content_type = @@default_content_type.dup 
    177178      @implicit_parts_order = @@default_implicit_parts_order.dup 
    178       @template = method_name 
    179179      @parts = [] 
    180180      @headers = {} 
    181181      @body = {}