From a8c833fcfd8907a3408dde28f6faacc04d0242fc Mon Sep 17 00:00:00 2001 From: passbe Date: Sun, 26 Jun 2011 08:45:07 +0000 Subject: [PATCH] Removed inherit parameter, think older versions of ruby dont support it git-svn-id: https://beef.googlecode.com/svn/trunk@1026 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- core/api.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/api.rb b/core/api.rb index 7349c0994..d0c236706 100644 --- a/core/api.rb +++ b/core/api.rb @@ -26,12 +26,12 @@ module API # Verifies that the api_path has been regitered def self.verify_api_path(c, m) - return (c.const_defined?('API_PATHS', false) and c.const_get('API_PATHS', false).has_key?(m)) + return (c.const_defined?('API_PATHS') and c.const_get('API_PATHS').has_key?(m)) end # Gets the sym set to the api_path def self.get_api_path(c, m) - return (self.verify_api_path(c, m)) ? c.const_get('API_PATHS', false)[m] : nil; + return (self.verify_api_path(c, m)) ? c.const_get('API_PATHS')[m] : nil; end end