dynamics 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/dynamics +2 -6
- metadata +2 -2
data/bin/dynamics
CHANGED
@@ -14,12 +14,8 @@ def create_scaffold(name)
|
|
14
14
|
Dir.mkdir(models_dir)
|
15
15
|
Dir.mkdir(views_dir)
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
else
|
20
|
-
base_controllers_dir = "base/controllers"
|
21
|
-
end
|
22
|
-
|
17
|
+
base_controllers_dir = File.join(File.dirname(__FILE__), '..', 'base', 'controllers')
|
18
|
+
|
23
19
|
f = File.new(File.join(controllers_dir, 'application_controller.rb'), 'w+')
|
24
20
|
f.write(render_code(File.join(base_controllers_dir, 'application_controller.rb')))
|
25
21
|
f.close
|