Changeset 8299
- Timestamp:
- 12/05/07 18:16:04 (1 year ago)
- Files:
-
- trunk/actionpack/lib/action_view/base.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_view/base.rb
r8249 r8299 277 277 # is made available as local variables. 278 278 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?("/") 280 280 raise ActionViewError, <<-END_ERROR 281 281 Due to changes in ActionMailer, you need to provide the mailer_name along with the template name.