app/controllers/home_controller.rb
Method has too many lines. [57/30] Open
Open
def index
# Stores the saved updates
content = Content.last
@content = content
data = params[:content]
- 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.
Method index
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def index
# Stores the saved updates
content = Content.last
@content = content
data = params[:content]