From 50bb38b0e5db4af3a7d19a2c5af44491c3f8a1d9 Mon Sep 17 00:00:00 2001 From: nov Date: Fri, 27 Jun 2014 13:38:30 +0900 Subject: [PATCH] ruby 2.0.0 support --- .travis.yml | 1 + lib/fb_graph2/node.rb | 2 +- lib/fb_graph2/struct.rb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3fc6ebc..2abcd8c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,2 +1,3 @@ rvm: + - 2.0.0 - 2.1.2 \ No newline at end of file diff --git a/lib/fb_graph2/node.rb b/lib/fb_graph2/node.rb index f0bcbc2..afb99e1 100644 --- a/lib/fb_graph2/node.rb +++ b/lib/fb_graph2/node.rb @@ -3,7 +3,7 @@ module FbGraph2 attr_accessor :id, :access_token, :raw_attributes def self.inherited(klass) - klass.include AttributeAssigner + klass.send :include, AttributeAssigner FbGraph2.object_classes << klass end diff --git a/lib/fb_graph2/struct.rb b/lib/fb_graph2/struct.rb index fb517c2..fff8515 100644 --- a/lib/fb_graph2/struct.rb +++ b/lib/fb_graph2/struct.rb @@ -1,7 +1,7 @@ module FbGraph2 class Struct def self.inherited(klass) - klass.include AttributeAssigner + klass.send :include, AttributeAssigner end def initialize(attributes = {})