Sha256: 6b8090029bd87d586c1effd6aa7b3b7d9ab9884c50d9b4bc0dcebe52a9087929

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

ActiveAdmin.register C80OrderForm::MessageOrder, :as => 'MessageOrder' do

  before_filter :skip_sidebar!, :only => :index

  if ActiveRecord::Base.connection.table_exists?('c80_order_form_settings')
    menu :parent => 'Сообщения', :label => C80OrderForm::Settings.first.admin_label_menu
  end

  index do
    selectable_column
    id_column
    column :created_at
    column :name
    column :email_or_phone
    column :comment do |msg|
      msg.comment.html_safe if msg.comment.present?
    end

    actions
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
c80_order_form-0.1.0.6 app/admin/c80_order_form/message_orders.rb