Updated

app/controllers / constituencies_controller.rb

A
11 lines of codes
1 methods
3.4 complexity/method
1 churn
3.41 complexity
0 duplications
class ConstituenciesController < ApplicationController
  1. ConstituenciesController has no descriptive comment
before_action :set_cors_headers, only: [:index], if: :json_request? def index @constituencies = Constituency.by_ons_code respond_to do |format| format.json end end end