Sha256: 3df962d54786532eedc5c344af78bc2b579a298717c947fff989c323f283df6f

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

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

  before_filter :skip_sidebar!, :only => :index

  if defined?(C80OrderForm::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.5 app/admin/c80_order_form/message_orders.rb