From 9f92563892007c7f42a51ec7926352d50d596579 Mon Sep 17 00:00:00 2001 From: wycats Date: Fri, 19 Mar 2010 11:49:53 -0700 Subject: Eliminate an error from an implicit dependency on AV::Base --- actionpack/lib/action_view/base.rb | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'actionpack/lib/action_view/base.rb') diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index 66af693cde..9eec8ecce8 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -7,27 +7,6 @@ module ActionView #:nodoc: class NonConcattingString < ActiveSupport::SafeBuffer end - class ActionViewError < StandardError #:nodoc: - end - - class MissingTemplate < ActionViewError #:nodoc: - attr_reader :path - - def initialize(paths, path, details, partial) - @path = path - display_paths = paths.compact.map{ |p| p.to_s.inspect }.join(", ") - template_type = if partial - "partial" - elsif path =~ /layouts/i - 'layout' - else - 'template' - end - - super("Missing #{template_type} #{path} with #{details.inspect} in view paths #{display_paths}") - end - end - # Action View templates can be written in three ways. If the template file has a .erb (or .rhtml) extension then it uses a mixture of ERb # (included in Ruby) and HTML. If the template file has a .builder (or .rxml) extension then Jim Weirich's Builder::XmlMarkup library is used. # If the template file has a .rjs extension then it will use ActionView::Helpers::PrototypeHelper::JavaScriptGenerator. -- cgit v1.2.3