Skip to content

Commit

Permalink
Make method name consistent with existing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeltrix committed Jun 6, 2012
1 parent 7682f70 commit 45427e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions railties/lib/rails/generators/named_base.rb
Expand Up @@ -84,11 +84,11 @@ def namespaced_file_path
end end


def namespaced_class_path def namespaced_class_path
@namespaced_class_path ||= [namespace_path] + @class_path @namespaced_class_path ||= [namespaced_path] + @class_path
end end


def namespace_path def namespaced_path
@namespace_path ||= namespace.name.split("::").map {|m| m.underscore }[0] @namespaced_path ||= namespace.name.split("::").map {|m| m.underscore }[0]
end end


def class_name def class_name
Expand Down
@@ -1,5 +1,5 @@
<% if namespaced? -%> <% if namespaced? -%>
require_dependency "<%= namespace_path %>/application_controller" require_dependency "<%= namespaced_path %>/application_controller"
<% end -%> <% end -%>
<% module_namespacing do -%> <% module_namespacing do -%>
Expand Down

0 comments on commit 45427e2

Please sign in to comment.