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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47adca38fb9a0e7482ba9df09c3fe4688cb2ad50
4
- data.tar.gz: fbe9c8fa3bd504fddb69192d89570c79e167d7fc
3
+ metadata.gz: 104567bbd2268177ac7656b444b8d8de39ab12ce
4
+ data.tar.gz: 30bb1128e9dc6fe09e154e3731d639c3db64548a
5
5
  SHA512:
6
- metadata.gz: c7a6c4919f0f98acac4545757c58fc3923418670d9e6029cb9029de5ade8447d9eefc8c267f681e92ffec571f6a513d1aec67e442ff9cee69373c6ba1056b978
7
- data.tar.gz: d5795263714e5365195fc7a198be41bdda1de513d18c399c3a76a29e6a51dd21992420fabed6edddb065299f149a4e978361bca1e1dcce5caa0b28aa859b2feb
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
@@ -1,3 +1,3 @@
1
1
  module MetaMagic
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta_magic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Otander