diff --git a/app/controllers/apps_controller.rb b/app/controllers/apps_controller.rb index a812306..8da3b21 100644 --- a/app/controllers/apps_controller.rb +++ b/app/controllers/apps_controller.rb @@ -97,7 +97,7 @@ protected # set the app's notification service available_notification_classes = [NotificationService] + NotificationService.subclasses notification_class = available_notification_classes.detect { |c| c.name == notification_type } - if !notification_class.nil? + unless notification_class.nil? app.notification_service = notification_class.new(params[:app][:notification_service_attributes]) end end diff --git a/app/models/problem.rb b/app/models/problem.rb index 928fc41..ca64d43 100644 --- a/app/models/problem.rb +++ b/app/models/problem.rb @@ -161,8 +161,8 @@ class Problem app, self, protocol: Errbit::Config.protocol, - host: Errbit::Config.host, - port: Errbit::Config.port + host: Errbit::Config.host, + port: Errbit::Config.port ) end diff --git a/config/puma.default.rb b/config/puma.default.rb index 5222a74..e38b1cb 100644 --- a/config/puma.default.rb +++ b/config/puma.default.rb @@ -6,8 +6,8 @@ threads threads_count, threads_count preload_app! -rackup DefaultRackup -port ENV['PORT'] || 8080 +rackup DefaultRackup +port ENV['PORT'] || 8080 environment ENV['RACK_ENV'] || 'development' on_worker_boot do diff --git a/lib/airbrake_api/v3/notice_parser.rb b/lib/airbrake_api/v3/notice_parser.rb index fcae8fd..1a9018f 100644 --- a/lib/airbrake_api/v3/notice_parser.rb +++ b/lib/airbrake_api/v3/notice_parser.rb @@ -72,9 +72,9 @@ module AirbrakeApi return context['user'] if context['user'] { - 'id' => context['userId'], - 'name' => context['userName'], - 'email' => context['userEmail'], + 'id' => context['userId'], + 'name' => context['userName'], + 'email' => context['userEmail'], 'username' => context['userUsername'] }.compact end -- libgit2 0.21.2