Sha256: ea57023f2c2556bb66982eb0e73dc9d716cfa426fd3ec0a79699841760f89adf

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

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

  before_filter :skip_sidebar!, :only => :index

  menu :parent => 'Сообщения', :label => 'Заявки' # TODO_MY:: слово "заявки" перенести в базу, в настройки гема

  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.1 app/admin/c80_order_form/message_orders.rb