def new_category_params
        # take params from front-end request
        category_params = params.require(:category).permit(:title, :lato_blog_category_id).to_h
        # add current superuser id
        category_params[:lato_core_superuser_creator_id] = @core__current_superuser.id
        # add post parent id
        category_params[:lato_blog_category_parent_id] = (params[:parent] && !params[:parent].blank? ? params[:parent] : generate_category_parent)
        # add metadata
        category_params[:meta_language] = cookies[:lato_blog__current_language]
        # return final post object
        return category_params
      end
def new_category_params
        # take params from front-end request
        category_params = params.require(:category).permit(:title, :lato_blog_category_id).to_h
        # add current superuser id
        category_params[:lato_core_superuser_creator_id] = @core__current_superuser.id
        # add post parent id
        category_params[:lato_blog_category_parent_id] = (params[:parent] && !params[:parent].blank? ? params[:parent] : generate_category_parent)
        # add metadata
        category_params[:meta_language] = cookies[:lato_blog__current_language]
        # return final post object
        return category_params
      end
Params helpers:
 This function generate params for a new category.