kelredd-resourceful 0.5.0 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,12 @@ module Resourceful
|
|
30
30
|
|
31
31
|
def attributes(force=false)
|
32
32
|
if @attributes.nil? || force
|
33
|
-
@attributes =
|
33
|
+
@attributes = {}
|
34
|
+
self.class.ancestors.each do |anc|
|
35
|
+
if @@attributes[anc.to_s]
|
36
|
+
@attributes.merge!(@@attributes[anc.to_s].inject({}) { |hsh, key| hsh[key] = self.send(key); hsh })
|
37
|
+
end
|
38
|
+
end
|
34
39
|
end
|
35
40
|
@attributes
|
36
41
|
end
|
data/lib/resourceful/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kelredd-resourceful
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelly Redding
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-12 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|