Skip to content

Broken implicit sorting by join tables in v1.2.3 #158

@sasha-id

Description

@sasha-id

This change in version 1.2.3 breaks implicit sorting by join tables aka join_table.column.
I guess the change was made to avoid SQL injections, but simple regex filter will work as well.

smart_listing/lib/smart_listing.rb

key = attr.to_s if @options[:array] || @collection.klass.attribute_method?(attr)

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