• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

simukappu / activity_notification / 12735483777

12 Jan 2025 05:05PM UTC coverage: 100.0%. Remained the same
12735483777

push

travis-ci

simukappu
[WIP] Update Ruby versions for test

3432 of 3432 relevant lines covered (100.0%)

2130.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/lib/activity_notification/controllers/common_api_controller.rb
1
module ActivityNotification
25✔
2
  # Module included in api controllers to select target
3
  module CommonApiController
25✔
4
    extend ActiveSupport::Concern
25✔
5

6
    included do
25✔
7
      rescue_from ActiveRecord::RecordNotFound,      with: :render_resource_not_found if defined?(ActiveRecord)
48✔
8
      rescue_from Mongoid::Errors::DocumentNotFound, with: :render_resource_not_found if ActivityNotification.config.orm == :mongoid
48✔
9
      rescue_from Dynamoid::Errors::RecordNotFound,  with: :render_resource_not_found if ActivityNotification.config.orm == :dynamoid
48✔
10
    end
11

12
    protected
25✔
13

14
      # Override to do nothing instead of JavaScript view for ajax request or redirects to back.
15
      # @api protected
16
      def return_back_or_ajax
25✔
17
      end
18

19
      # Override to do nothing instead of redirecting to notifiable_path
20
      # @api protected
21
      def redirect_to_notifiable_path
25✔
22
      end
23

24
      # Override to do nothing instead of redirecting to subscription path
25
      # @api protected
26
      def redirect_to_subscription_path
25✔
27
      end
28

29
  end
30
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc