aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/base.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-06-15 17:17:58 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-06-15 17:17:58 +0000
commit7bb486055e62b33547101a10d2505564ff1d004f (patch)
tree0667f7731beafef5899cd63edca248f0c27046a7 /actionpack/lib/action_view/base.rb
parent14c378cc7fd364ea5d96e13746345a29341cd845 (diff)
downloadrails-7bb486055e62b33547101a10d2505564ff1d004f.tar.gz
rails-7bb486055e62b33547101a10d2505564ff1d004f.tar.bz2
rails-7bb486055e62b33547101a10d2505564ff1d004f.zip
r1318@iwill: jeremy | 2005-06-15 01:08:22 -0700
Ticket 1394 - Helper isolation r1319@iwill: jeremy | 2005-06-15 01:10:00 -0700 Formulate a test case for helper isolation. r1331@iwill: jeremy | 2005-06-15 15:21:07 -0700 Update changelog r1332@iwill: jeremy | 2005-06-15 15:21:30 -0700 Remove superfluous, broken layout_test r1333@iwill: jeremy | 2005-06-15 15:24:10 -0700 Use an anonymous Module to store helpers per-class instead of tossing them all in template_class. Create a new helper module for subclasses which includes its superclass' helper module. Remove unnecessary ActionView::Base.controller_delegate. Update helper tests. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1425 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r--actionpack/lib/action_view/base.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index 06df395cb2..9a4e00057a 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -144,16 +144,6 @@ module ActionView #:nodoc:
end
end
- def self.controller_delegate(*methods)#:nodoc:
- methods.flatten.each do |method|
- class_eval <<-end_eval
- def #{method}(*args, &block)
- controller.send(%(#{method}), *args, &block)
- end
- end_eval
- end
- end
-
def self.register_template_handler(extension, klass)
@@template_handlers[extension] = klass
end
@@ -305,4 +295,4 @@ module ActionView #:nodoc:
end
end
-require 'action_view/template_error' \ No newline at end of file
+require 'action_view/template_error'