drewda-railroad 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/railroad/controllers_diagram.rb +0 -3
- data/rake.gemspec +1 -1
- metadata +1 -1
@@ -20,11 +20,8 @@ class ControllersDiagram < AppDiagram
|
|
20
20
|
STDERR.print "Generating controllers diagram\n" if @options.verbose
|
21
21
|
|
22
22
|
files = Dir.glob("app/controllers/**/*_controller.rb") - @options.exclude
|
23
|
-
files << 'app/controllers/application_controller.rb'
|
24
23
|
files.each do |f|
|
25
24
|
class_name = extract_class_name(f)
|
26
|
-
# ApplicationController's file is 'application.rb'
|
27
|
-
class_name += 'Controller' if class_name == 'Application'
|
28
25
|
process_class class_name.constantize
|
29
26
|
end
|
30
27
|
end # generate
|
data/rake.gemspec
CHANGED