dynamics 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/dynamics +2 -6
  2. 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
- if File.exists?('../lib/base')
18
- base_controllers_dir = "../lib/base/controllers"
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ng Say Joe