Skip to content

Warning logs when add a html class to an element. #12

@havilchis

Description

@havilchis

When I want to set an html class to an element...
table.column :data => 'Open', :link => true, :data_column_html => {:class => "text-center"}

I see multiple warning logs (more than 100) with this message:
You are setting a key that conflicts with a built-in method Hashie::Mash#class defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.

This not broke the table but causes a very slow render of the view.

Rails 5.1
table_for 3.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions