Commit 82dc3676500f19974136cf925b7c0d14ab8ae89c
1 parent
776ca7bc
Exists in
ratings_minor_fixes
and in
4 other branches
push_notification: Fix api class name
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
plugins/push_notification/lib/push_notification_plugin.rb
@@ -39,7 +39,7 @@ class PushNotificationPlugin < Noosfero::Plugin | @@ -39,7 +39,7 @@ class PushNotificationPlugin < Noosfero::Plugin | ||
39 | end | 39 | end |
40 | 40 | ||
41 | def self.api_mount_points | 41 | def self.api_mount_points |
42 | - [PushNotificationPlugin::Api] | 42 | + [PushNotificationPlugin::API] |
43 | end | 43 | end |
44 | 44 | ||
45 | def self.plugin_description | 45 | def self.plugin_description |
plugins/push_notification/lib/push_notification_plugin/api.rb
1 | -require_dependency 'api/helpers' | ||
2 | require_relative 'api_entities' | 1 | require_relative 'api_entities' |
3 | 2 | ||
4 | -class PushNotificationPlugin::Api < Grape::API | 3 | +# Can't be called Api as will result in: |
4 | +# warning: toplevel constant Api referenced by PushNotificationPlugin::Api | ||
5 | +# To fix this PushNotificationPlugin should be a module | ||
6 | +class PushNotificationPlugin::API < Grape::API | ||
5 | 7 | ||
6 | include Api::Helpers | 8 | include Api::Helpers |
7 | 9 |