Sha256: 1b91f16697cacd26f0dddb5c2ceca43c42306b53325e0fc169587b57a50cc3bb
Contents?: true
Size: 549 Bytes
Versions: 20
Compression:
Stored size: 549 Bytes
Contents
class Admix::SettingsDatagrid include Datagrid scope do Setting.desc(:name) end filter :name, :string column :name, header: I18n.t('settings.fields.name') column :key, header: I18n.t('settings.fields.key') column :value, header: I18n.t('settings.fields.value') column :image, header: I18n.t('settings.fields.image'), html: true do |post| if post.image? image_tag post.image.url else "--" end end column :activated, header: I18n.t('settings.fields.activated') include Admix::TableActions end
Version data entries
20 entries across 20 versions & 2 rubygems