Sha256: 9fa02251c4a793f1ed203fc98c207c23b33b546d93beb843cbe758247ce35aa4
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
# frozen_string_literal: true module Distribuo class AppsTable < ApplicationTable model Distribuo::App column(:icon) do |app| app.icon.attached? ? image_tag(main_app.url_for(app.icon.variant(resize_to_limit: [20, 20]))) : '' end column(:name) column(:release_type) column(:operating_system) column(:created_at) filter(:platform) initial_order :created_at, :desc row_link { |app| distribuo.admin_app_path(app) } private def scope @scope = App.all @scope end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
distribuo-0.1.16 | app/tables/distribuo/apps_table.rb |
distribuo-0.1.8 | app/tables/distribuo/apps_table.rb |