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
plugins/push_notification/lib/push_notification_plugin/api.rb
1 | -require_dependency 'api/helpers' | |
2 | 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 | 8 | include Api::Helpers |
7 | 9 | ... | ... |