Sology / smart_listing

Ruby on Rails data listing gem with built-in sorting, filtering and in-place editing.
http://showcase.sology.eu/smart_listing
MIT License
478 stars 138 forks source link

Not all of the configured classes get applied? #159

Open robinvdijk opened 5 years ago

robinvdijk commented 5 years ago

Maybe I am missing something, but not all classes get applied if I define them in smart_listing.rb

I am running version 1.2.2.

Smarlisting.configure do |config|
  ..omitted..

  config.constants :classes,
                   editable:         'foo',
                   item_actions:     'foo',
                   inline_editing:   'foo',
                   icon_new:         'fa fa-plus',
                   icon_edit:        'fa fa-pencil',
                   icon_trash:       'fa fa-trash',
                   icon_sort_none:   'fa fa-sort',
                   icon_sort_up:     'fa fa-sort-up',
                   icon_sort_down:   'fa fa-sort-down'

  ...omitted...
end

The FontAwesome classes get correctly applied to items, but editable, item_actions and inline_editing do not, they still show up as the defaults. I expected them to show up as foo.