Sha256: 8e1ff4f29a921a81ad74e42bfd63553da1f4554a79e39616ca623d4001e25422
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 Bytes
Contents
ActiveAdmin.register C80Contest::Bid, :as => 'Bid' do if ActiveRecord::Base.connection.table_exists?('c80_contest_settings') menu :parent => C80Contest::Setting.first.admin_label_menu, :label => C80Contest::Setting.first.admin_label_menu if C80Contest::Setting.first.present? end config.sort_order = 'created_at_desc' filter :title filter :phone filter :created_at index do id_column column :created_at column :title column :phone column :photo do |bid| if bid.photo.present? link_to image_tag(bid.photo.thumb.url), bid.photo.url end end actions end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
c80_contest-0.1.1 | app/admin/c80_contest/bids.rb |