diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-07 10:40:54 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-07 10:40:54 +0000 |
commit | 87d14dea105ef248c14e76dd3cd1086ae7a93dc6 (patch) | |
tree | 825cf5c704b80c8c91887161aa9fae73003d2a7c /lib/SVG | |
parent | 86a9d90f07d6a46a733524d6ae5ac79740687154 (diff) | |
download | redmine-87d14dea105ef248c14e76dd3cd1086ae7a93dc6.tar.gz redmine-87d14dea105ef248c14e76dd3cd1086ae7a93dc6.zip |
Fixes SVG lib for ruby1.9.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3017 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/SVG')
-rw-r--r-- | lib/SVG/Graph/Graph.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/SVG/Graph/Graph.rb b/lib/SVG/Graph/Graph.rb index c188ae51d..497bb7c38 100644 --- a/lib/SVG/Graph/Graph.rb +++ b/lib/SVG/Graph/Graph.rb @@ -150,7 +150,7 @@ module SVG :add_popups =>false,
})
- set_defaults if methods.include? "set_defaults"
+ set_defaults if respond_to? :set_defaults
init_with config
end
@@ -195,7 +195,7 @@ module SVG def burn
raise "No data available" unless @data.size > 0
- calculations if methods.include? 'calculations'
+ calculations if respond_to? :calculations
start_svg
calculate_graph_dimensions
@@ -355,7 +355,7 @@ module SVG # by subclasses.
def init_with config
config.each { |key, value|
- self.send( key.to_s+"=", value ) if methods.include? key.to_s
+ self.send((key.to_s+"=").to_sym, value ) if respond_to? key.to_sym
}
end
|