aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorNick Sutterer <apotonick@gmail.com>2012-06-29 11:33:37 +0200
committerNick Sutterer <apotonick@gmail.com>2012-06-29 11:33:37 +0200
commit1b01ab495968eb38843e21a61d32ef9a44a6d89a (patch)
tree7487d080ba2a73b2ceb2184f9feef22f08e87b4f /actionpack/lib/action_view
parent809bdf342638592b0dfd2f888c7c9a4ac093d8cf (diff)
downloadrails-1b01ab495968eb38843e21a61d32ef9a44a6d89a.tar.gz
rails-1b01ab495968eb38843e21a61d32ef9a44a6d89a.tar.bz2
rails-1b01ab495968eb38843e21a61d32ef9a44a6d89a.zip
remove AV.prepare and move all helper-related logic into the controller. this decouples the view since it no longer knows about routes internals.
this is a result of an ongoing discussion at https://github.com/rails/rails/pull/6826.
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/base.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index f98648d930..4152f40c2e 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -166,22 +166,6 @@ module ActionView #:nodoc:
def xss_safe? #:nodoc:
true
end
-
- # This method receives routes and helpers from the controller
- # and return a subclass ready to be used as view context.
- def prepare(routes, helpers) #:nodoc:
- Class.new(self) do
- if routes
- include routes.url_helpers
- include routes.mounted_helpers
- end
-
- if helpers
- include helpers
- self.helpers = helpers
- end
- end
- end
end
attr_accessor :view_renderer