Skip to content
Browse files

Make method name consistent with existing methods

  • Loading branch information...
1 parent 7682f70 commit 45427e28a9f26f599f86c6626ed32672511c8dc5 @pixeltrix pixeltrix committed
View
6 railties/lib/rails/generators/named_base.rb
@@ -84,11 +84,11 @@ def namespaced_file_path
end
def namespaced_class_path
- @namespaced_class_path ||= [namespace_path] + @class_path
+ @namespaced_class_path ||= [namespaced_path] + @class_path
end
- def namespace_path
- @namespace_path ||= namespace.name.split("::").map {|m| m.underscore }[0]
+ def namespaced_path
+ @namespaced_path ||= namespace.name.split("::").map {|m| m.underscore }[0]
end
def class_name
View
2 railties/lib/rails/generators/rails/controller/templates/controller.rb
@@ -1,5 +1,5 @@
<% if namespaced? -%>
-require_dependency "<%= namespace_path %>/application_controller"
+require_dependency "<%= namespaced_path %>/application_controller"
<% end -%>
<% module_namespacing do -%>

0 comments on commit 45427e2

Please sign in to comment.
Something went wrong with that request. Please try again.