app/controllers/proposals_controller.rb
Method has too many lines. [21/20] Open
Open
def create
@proposal = Proposal.new(proposal_params)
@proposal.user = current_user
authorize @proposal
respond_to do |format|
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Line is too long. [99/80] Open
Open
redirect_back(fallback_location: proposal_path(@proposal), alert: 'Tu voto ha sido registrado')
- Exclude checks