lib/rapidoc/resource_doc.rb in rapidoc-0.0.6 vs lib/rapidoc/resource_doc.rb in rapidoc-0.0.7
- old
+ new
@@ -13,11 +13,11 @@
##
# @param resource_name [String] resource name
# @param routes_doc [RoutesDoc] routes documentation
#
def initialize( resource_name, routes_actions_info )
- @name = resource_name.to_s
- @controller_file = name.to_s.pluralize + '_controller' + controllers_extension
+ @name = resource_name.to_s.split('/').last
+ @controller_file = resource_name.to_s.pluralize + '_controller' + controllers_extension
generate_info routes_actions_info
end
##