Sha256: 9c5f5e00e79cc800d52ea8e67d0749a0e799d69cac096be632e8e46c0381f5b3

Contents?: true

Size: 684 Bytes

Versions: 4

Compression:

Stored size: 684 Bytes

Contents

ActiveAdmin.register C80RefinePrice::RpProp, as: 'RpProp' do

  menu :parent => 'Сообщения',
       :label => 'Уточнить цену (настройки)',
       :priority => 202

  permit_params :yandex_metrika_counter_id,
                :yandex_metrika_target_id

  batch_action :destroy, false

  before_filter :skip_sidebar!, :only => :index

  index do
    selectable_column
    column :yandex_metrika_counter_id
    column :yandex_metrika_target_id
    actions
  end

  form(:html => {:multipart => true}) do |f|

    f.inputs 'Свойства' do
      f.input :yandex_metrika_counter_id
      f.input :yandex_metrika_target_id
    end

    f.actions
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
c80_refine_price-0.1.0.3 app/admin/c80_refine_price/rp_props.rb
c80_refine_price-0.1.0.2 app/admin/c80_refine_price/rp_props.rb
c80_refine_price-0.1.0.1 app/admin/c80_refine_price/rp_props.rb
c80_refine_price-0.1.0 app/admin/c80_refine_price/rp_props.rb