aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-10 19:38:33 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-10 19:38:33 +0000
commit1c5d1ededb3ccaed4810b45b672f0a9e3ca52884 (patch)
tree8ab01cc3e2bfb52fb79fbac27c6a87d3143e7378 /actionpack/lib/action_view.rb
parentc0f84b117ca08e7959062f17c216060d68d46b0c (diff)
downloadrails-1c5d1ededb3ccaed4810b45b672f0a9e3ca52884.tar.gz
rails-1c5d1ededb3ccaed4810b45b672f0a9e3ca52884.tar.bz2
rails-1c5d1ededb3ccaed4810b45b672f0a9e3ca52884.zip
Fixed that Action View should always use the included Builder, never attempt to require the gem, to ensure compatibility
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1802 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view.rb')
-rw-r--r--actionpack/lib/action_view.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/actionpack/lib/action_view.rb b/actionpack/lib/action_view.rb
index d2a54da15e..3c6e109caf 100644
--- a/actionpack/lib/action_view.rb
+++ b/actionpack/lib/action_view.rb
@@ -21,14 +21,8 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
-begin
- require 'rubygems'
- require 'builder'
-rescue LoadError
- # RubyGems is not available, use included Builder
- $:.unshift(File.dirname(__FILE__) + "/action_view/vendor")
- require 'action_view/vendor/builder'
-end
+$:.unshift(File.dirname(__FILE__) + "/action_view/vendor")
+require 'action_view/vendor/builder'
require 'action_view/base'
require 'action_view/partials'