gleborator 0.1.1.2 → 0.1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gleborator/base_decorator.rb +2 -6
- data/lib/gleborator/setup.rb +7 -2
- data/lib/gleborator/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: b66fa368f8cc815753803bcc4e346fd350d96bd6
|
4
|
+
data.tar.gz: 7bbf04a52fe87cf3dec71ef59713065a167972c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cb7f351d4d4153f3c8b841c71bfb3058efcf6dfc1a29ee86d5af609f77909908e1841786c81ca9ed80b499e3439fb7965d1e9330cf0bf9c43746357a58f5809
|
7
|
+
data.tar.gz: 68729471e40dce840872d1a17743869f9d5d830155e54a1291766b3d528514ff5786cb4c20315b521541764c337fd80f5b59146af36d954c4d8a57596fbc2f2e
|
data/lib/gleborator/setup.rb
CHANGED
@@ -5,7 +5,7 @@ module Gleborator
|
|
5
5
|
def decorate
|
6
6
|
begin
|
7
7
|
decorator_class = "#{self.class.name}Decorator".constantize
|
8
|
-
decorator_class.
|
8
|
+
decorator_class.new(self)
|
9
9
|
rescue NameError => e
|
10
10
|
raise "Couldn't find decorator #{self.class.name}Decorator"
|
11
11
|
end
|
@@ -13,7 +13,12 @@ module Gleborator
|
|
13
13
|
|
14
14
|
module ClassMethods
|
15
15
|
def decorate
|
16
|
-
|
16
|
+
begin
|
17
|
+
decorator_class = "#{self.class.name}Decorator".constantize
|
18
|
+
decorate_class.decorate_collection(self)
|
19
|
+
rescue NameError => e
|
20
|
+
raise "Couldn't find decorator #{self.class.name}Decorator"
|
21
|
+
end
|
17
22
|
end
|
18
23
|
end
|
19
24
|
end
|
data/lib/gleborator/version.rb
CHANGED