oa_angular_setup 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oa_angular_setup/initialize_angular.rb +1 -1
- data/lib/oa_angular_setup/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd4fd09911bbdaf214d60b36fce02f96323f44b4
|
4
|
+
data.tar.gz: a98a33ec55c15ee1cc7e67755ea3f499edd34018
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 347651fffdfb16c46d9b4dd89950bea2cb2bca11c6cc5cb90f7c6d545f94c8807185cca6197b0df0587b05e16f16c5f9fcc15848f3c82d7210612d3dced002f4
|
7
|
+
data.tar.gz: ab04dba8197afa4ce9cc831d902901a2455d82ff9813dab66e07cae6e12f003d040c9ea02409853dd380f3f7897ce5acdf1b8582533c5b2877201f79d19177dd
|
@@ -320,7 +320,7 @@ class AngularInitializer
|
|
320
320
|
|
321
321
|
def update_controllers(apis, model_name, app_name)
|
322
322
|
Dir.mkdir("#{@destination}controllers") unless File.exists?("#{@destination}controllers")
|
323
|
-
return write_controllers(apis, model_name, app_name) unless File.exists?("#{@destination}controllers/#{
|
323
|
+
return write_controllers(apis, model_name, app_name) unless File.exists?("#{@destination}controllers/#{model_name}_controllers.js")
|
324
324
|
output, edited_controller_titles = [], []
|
325
325
|
model = model_name.delete('/')
|
326
326
|
file_contents = File.read("#{@destination}controllers/#{model}_controllers.js")
|