Sha256: 4999655801e9848d3f89abbbc3627efcd015378916530848bdf2ce5a81bda8e2

Contents?: true

Size: 478 Bytes

Versions: 21

Compression:

Stored size: 478 Bytes

Contents

module Admix
  class VideosDatagrid
    include Datagrid

    scope do
      Video.most_recent
    end

    column :thumb, header: I18n.t('videos.fields.thumb') do |video|
      ActionController::Base.helpers.image_tag(video.thumb)
    end

    column :title, header: I18n.t('videos.fields.title')

    column :published_at, header: I18n.t('videos.fields.published_at') do |video|
      video.published_at.strftime('%d/%m/%Y')
    end

    include Admix::TableActions
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
mix-rails-0.6.0 videos/app/models/admix/videos_datagrid.rb