meta_magic 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/meta_magic/controller.rb +4 -0
- data/lib/meta_magic/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: 104567bbd2268177ac7656b444b8d8de39ab12ce
|
4
|
+
data.tar.gz: 30bb1128e9dc6fe09e154e3731d639c3db64548a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4c93a92a9d782543c01a8bf33b3f7646246da10cb10e3e94600801d1c3b2b647a32abe2ba3eaf696a352e4fd66679dc3f91a354af945736ab4c98dab3aa0461
|
7
|
+
data.tar.gz: d39ed4bcebcf526ca7bcfdd559032574b16b2a55ae2867876800e711738557bc10718cee3e358340ff76363006be0be49adb27f995de352b0bd2714d51410c93
|
@@ -12,6 +12,10 @@ module MetaMagic
|
|
12
12
|
send(:"set_#{ controller_name.classify.underscore.downcase }")
|
13
13
|
end
|
14
14
|
|
15
|
+
def assign_models_instance_variable_array
|
16
|
+
instance_variable_set(:"@#{ controller_name }", get_model_class.all)
|
17
|
+
end
|
18
|
+
|
15
19
|
def get_model_class
|
16
20
|
controller_name.classify.constantize
|
17
21
|
end
|
data/lib/meta_magic/version.rb
CHANGED