aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2012-06-06 10:27:55 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2012-06-06 10:27:55 +0100
commit45427e28a9f26f599f86c6626ed32672511c8dc5 (patch)
treeeadf40f132a5ea1b8b001179a42a6a7f799ca1b2 /railties/lib/rails/generators
parent7682f7004d8ece950b295e9edd8e3e039e486ab2 (diff)
downloadrails-45427e28a9f26f599f86c6626ed32672511c8dc5.tar.gz
rails-45427e28a9f26f599f86c6626ed32672511c8dc5.tar.bz2
rails-45427e28a9f26f599f86c6626ed32672511c8dc5.zip
Make method name consistent with existing methods
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r--railties/lib/rails/generators/named_base.rb6
-rw-r--r--railties/lib/rails/generators/rails/controller/templates/controller.rb2
2 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/generators/named_base.rb b/railties/lib/rails/generators/named_base.rb
index b060b4330b..fcd289b2dd 100644
--- a/railties/lib/rails/generators/named_base.rb
+++ b/railties/lib/rails/generators/named_base.rb
@@ -84,11 +84,11 @@ module Rails
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
diff --git a/railties/lib/rails/generators/rails/controller/templates/controller.rb b/railties/lib/rails/generators/rails/controller/templates/controller.rb
index 0f15125649..633e0b3177 100644
--- a/railties/lib/rails/generators/rails/controller/templates/controller.rb
+++ b/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 -%>