Sha256: f8589c2b2ec789cf41172d1a7ed0a4fa9166002439893f48b46c228a8cc56b48

Contents?: true

Size: 353 Bytes

Versions: 4

Compression:

Stored size: 353 Bytes

Contents

class Admix::SongsDatagrid

  include Datagrid
  
  extend AdmixHelper

  scope do
    Song.order('id DESC')
  end

  column :title, header: input_label(:song, :title)
  column :author, header: input_label(:song, :author)

  column :status, header: input_label(:song, :status) do |record|
    record.status.text
  end

  include Admix::TableActions

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
mix-rails-0.23.1 mix-rails-songs/app/models/admix/songs_datagrid.rb
mix-rails-songs-0.23.1 app/models/admix/songs_datagrid.rb
mix-rails-0.23.0 mix-rails-songs/app/models/admix/songs_datagrid.rb
mix-rails-songs-0.23.0 app/models/admix/songs_datagrid.rb