Skip to content

Commit

Permalink
removed the useless url_helper proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Jan 2, 2011
1 parent aa45bb1 commit 5e1151e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions lib/cell/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ def params
include Rendering
include Caching


cattr_accessor :url_helpers ### TODO: discuss if we really need that or can handle that in cells.rb already.
attr_reader :parent_controller

abstract!
Expand All @@ -67,12 +65,10 @@ def self.view_context_class

View.class_eval do
include controller._helpers
include Cell::Base.url_helpers if Cell::Rails.url_helpers
include controller._routes.url_helpers
end


@view_context_class ||= View
### DISCUSS: copy behaviour from abstract_controller/rendering-line 49? (helpers)
end

def self.controller_path
Expand Down
2 changes: 0 additions & 2 deletions lib/cells.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ class Cells::Railtie < Rails::Railtie
Cell::Rails.class_eval do
include app.routes.url_helpers
end

Cell::Base.url_helpers = app.routes.url_helpers
end

rake_tasks do
Expand Down

0 comments on commit 5e1151e

Please sign in to comment.