Showing 3 of 17 total issues
Method recipe_meta_tag_options
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def recipe_meta_tag_options(recipe)
set_meta_tags description: recipe.description.to_plain_text,
keywords: recipe.categories.list_names,
twitter: {
card: "summary",
Method set_root_meta_tag_options
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def set_root_meta_tag_options
set_meta_tags description: main_description,
twitter: {
card: "summary",
title: "Recipedia | Let's cook together",
Method create
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def create
@category = Category.new(category_params)
@category.user = current_user
@categories = Category.all