Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Segment key_path should keep trailing null keys #3

@skobkars

Description

@skobkars

If group_by key for a segment ends with dot(s), splitting with simple split(key_path) in segment_options_for drops trailing null key(s) resulting in error message "ActionView::Template::Error (wrong argument type NilClass (must respond to :each)):"

Simple change to split(key_path,-1) in segment_options_for solves it

I forked it to fix the problem in my project, but please update

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions