Sha256: 6f26168c916b9224aacecad3222d53613bd33fe27e3025803820cbd99654d09f

Contents?: true

Size: 572 Bytes

Versions: 5

Compression:

Stored size: 572 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 if C80OrderForm::Settings.first.present?
  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

5 entries across 5 versions & 1 rubygems

Version Path
c80_order_form-0.1.0.11 app/admin/c80_order_form/message_orders.rb
c80_order_form-0.1.0.10 app/admin/c80_order_form/message_orders.rb
c80_order_form-0.1.0.9 app/admin/c80_order_form/message_orders.rb
c80_order_form-0.1.0.8 app/admin/c80_order_form/message_orders.rb
c80_order_form-0.1.0.7 app/admin/c80_order_form/message_orders.rb