mirror of
https://github.com/nov/fb_graph2
synced 2023-03-27 23:22:15 -04:00
ruby 2.0.0 support
This commit is contained in:
parent
13ded93c20
commit
50bb38b0e5
3 changed files with 3 additions and 2 deletions
|
@ -1,2 +1,3 @@
|
||||||
rvm:
|
rvm:
|
||||||
|
- 2.0.0
|
||||||
- 2.1.2
|
- 2.1.2
|
|
@ -3,7 +3,7 @@ module FbGraph2
|
||||||
attr_accessor :id, :access_token, :raw_attributes
|
attr_accessor :id, :access_token, :raw_attributes
|
||||||
|
|
||||||
def self.inherited(klass)
|
def self.inherited(klass)
|
||||||
klass.include AttributeAssigner
|
klass.send :include, AttributeAssigner
|
||||||
FbGraph2.object_classes << klass
|
FbGraph2.object_classes << klass
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module FbGraph2
|
module FbGraph2
|
||||||
class Struct
|
class Struct
|
||||||
def self.inherited(klass)
|
def self.inherited(klass)
|
||||||
klass.include AttributeAssigner
|
klass.send :include, AttributeAssigner
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
|
|
Loading…
Reference in a new issue