Commit dd5ea59ffa23a960dcd763e1bf087b33f977b7ff
Committed by
Rodrigo Souto
1 parent
b65da5af
Exists in
api_tasks
and in
4 other branches
api: fix plugin hotspot
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
lib/noosfero/api/api.rb
... | ... | @@ -38,7 +38,7 @@ module Noosfero |
38 | 38 | #finds for plugins which has api mount points classes defined (the class should extends Grape::API) |
39 | 39 | @plugins = Noosfero::Plugin.all.map { |p| p.constantize } |
40 | 40 | @plugins.each do |klass| |
41 | - if klass.public_methods.include? 'api_mount_points' | |
41 | + if klass.public_methods.include? :api_mount_points | |
42 | 42 | klass.api_mount_points.each do |mount_class| |
43 | 43 | mount mount_class if mount_class && ( mount_class < Grape::API ) |
44 | 44 | end | ... | ... |