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
This commit is contained in:
passbe
2011-06-26 08:45:07 +00:00
parent a02f14b79f
commit a8c833fcfd

View File

@@ -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