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

Changeset 8299

Show
Ignore:
Timestamp:
12/05/07 18:16:04 (1 year ago)
Author:
david
Message:

Ensure that ActionMailer::Base is there and not just the parent module

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_view/base.rb

    r8249 r8299  
    277277    # is made available as local variables. 
    278278    def render_file(template_path, use_full_path = true, local_assigns = {}) #:nodoc: 
    279       if defined?(ActionMailer) && controller.is_a?(ActionMailer::Base) && !template_path.include?("/") 
     279      if defined?(ActionMailer) && defined?(ActionMailer::Base) && controller.is_a?(ActionMailer::Base) && !template_path.include?("/") 
    280280        raise ActionViewError, <<-END_ERROR 
    281281Due to changes in ActionMailer, you need to provide the mailer_name along with the template name.