engineer 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/VERSION +1 -1
- data/lib/generators/engineer/install/install_generator.rb +2 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -22,7 +22,8 @@ class Engineer
|
|
22
22
|
|
23
23
|
create_file File.join(nested_path, 'application_controller.rb') do
|
24
24
|
content = File.read File.join(unnested_path, 'application_controller.rb')
|
25
|
-
content.gsub!
|
25
|
+
content.gsub!("class ApplicationController < ActionController::Base",
|
26
|
+
"class #{app_module}::ApplicationController < defined?(ApplicationController) ? ApplicationController : ActionController::Base")
|
26
27
|
content
|
27
28
|
end
|
28
29
|
|