rmvc 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rmvc.rb +17 -17
- 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: e11c29f6e5d5e12c3994cef74d722368c1f884ab
|
4
|
+
data.tar.gz: dfb2d7bfc9119d2fcc9d9a3328b7cedee767f626
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe9ab40f6a6ad978e22150d57fda34848462056cbeaa457e00622a8a9cd1b4a846ee91bae1ec6b19bb1bd677695b8a91f1ce06df6d1d975a9c7f12caf6fa939b
|
7
|
+
data.tar.gz: 25b0c1e3b1cca73a8610710d92d11ac92486593b2819ee954819b332a4b5ddca5f3678a2478806964a615f0ce4687b085b5d2a073b43ec36e3096c185a54e875
|
data/lib/rmvc.rb
CHANGED
@@ -190,34 +190,34 @@ module RMVC
|
|
190
190
|
# Helper for creating a controller
|
191
191
|
def self.createController(controllerName)
|
192
192
|
controllerCap = controllerName.capitalize
|
193
|
-
"require './app/models/#{controllerName}'
|
194
|
-
require './app/views/#{controllerName}'
|
195
|
-
class #{controllerCap}Controller
|
193
|
+
"require './app/models/#{controllerName}'
|
194
|
+
require './app/views/#{controllerName}'
|
195
|
+
class #{controllerCap}Controller
|
196
196
|
class << self
|
197
|
-
#Add your variables here
|
198
|
-
attr_accessor :name
|
199
|
-
end
|
200
|
-
@name = \"James!\"
|
201
|
-
def self.main
|
202
|
-
#{controllerCap}View.load
|
203
|
-
end
|
197
|
+
#Add your variables here!
|
198
|
+
attr_accessor :name
|
199
|
+
end
|
200
|
+
@name = \"James!\"
|
201
|
+
def self.main
|
202
|
+
#{controllerCap}View.load
|
203
|
+
end
|
204
204
|
end\n"
|
205
205
|
end
|
206
206
|
# Helper for creating a view
|
207
207
|
def self.createView(viewName, controllerName)
|
208
208
|
viewCap = viewName.capitalize
|
209
|
-
"require './app/controllers/#{controllerName}_controller'
|
210
|
-
class #{viewCap}View
|
211
|
-
def self.load
|
212
|
-
puts \"Hello, hello!\"
|
213
|
-
end
|
209
|
+
"require './app/controllers/#{controllerName}_controller'
|
210
|
+
class #{viewCap}View
|
211
|
+
def self.load
|
212
|
+
puts \"Hello, hello!\"
|
213
|
+
end
|
214
214
|
end\n"
|
215
215
|
end
|
216
216
|
|
217
217
|
# Helper for creating a model
|
218
218
|
def self.createModel(modelName)
|
219
|
-
"require './app/controllers/#{modelName}_controller'
|
220
|
-
class #{modelName.capitalize}Model
|
219
|
+
"require './app/controllers/#{modelName}_controller'
|
220
|
+
class #{modelName.capitalize}Model
|
221
221
|
end\n"
|
222
222
|
end
|
223
223
|
end
|