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

kleer-la / eventer / 9923112455

13 Jul 2024 09:58PM UTC coverage: 67.054% (-0.02%) from 67.074%
9923112455

push

github

jgabardini
rubocop -a

1 of 2 new or added lines in 1 file covered. (50.0%)

186 existing lines in 27 files now uncovered.

2249 of 3354 relevant lines covered (67.05%)

6.91 hits per line

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

55.56
/app/controllers/service_areas_controller.rb
1
# frozen_string_literal: true
2

3
class ServiceAreasController < InheritedResources::Base
1✔
4
  before_action :set_service_area, only: %i[show edit update destroy]
1✔
5

6
  private
1✔
7

8
  def set_service_area
1✔
9
    @service_area = ServiceArea.friendly.find(params[:id])
×
10
  rescue ActiveRecord::RecordNotFound
UNCOV
11
    flash[:alert] = 'The requested service area could not be found.'
×
UNCOV
12
    redirect_to(service_areas_path)
×
13
  end
14

15
  def service_area_params
1✔
UNCOV
16
    params.require(:service_area).permit(
×
17
      :name, :abstract, :lang, :icon, :primary_color, :secondary_color, :visible,
18
      :target_title, :seo_title, :seo_description
19
    )
20
  end
21
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

© 2025 Coveralls, Inc