Permalink
Browse files

aliased .cell_name with .controller_path.

  • Loading branch information...
1 parent 1d8f969 commit d2b79395313f22c8b261cab40e3fe7bcdb11c12e @apotonick apotonick committed Feb 20, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/cell.rb
View
@@ -83,9 +83,8 @@ def find_class_view_for_state(state)
superclass.find_class_view_for_state(state) << view_for_state(state)
end
- # The cell name, underscored with +_cell+ removed.
- def cell_name
- name.underscore.sub(/_cell$/, '')
+ def cell_name # TODO: remove in 3.6.
+ controller_path
end
# The cell class constant for +cell_name+.

0 comments on commit d2b7939

Please sign in to comment.