Sha256: f74170f1e352055e86c1b08ab4bb2931a0682c1e7ef80be136e3b46c8f6ed4e2

Contents?: true

Size: 747 Bytes

Versions: 7

Compression:

Stored size: 747 Bytes

Contents

# ПОДкатегории строительных материалов
ActiveAdmin.register C80Estate::Astatus, :as => 'Astatus' do

  menu :label => "Статусы", :parent => "Настройки"

  permit_params :title

  config.sort_order = 'id_asc'

  # controller do
  #   cache_sweeper :strsubcat_sweeper, :only => [:update,:create,:destroy]
  # end

  before_filter :skip_sidebar!, :only => :index

  # filter :title

  # controller do
  #   cache_sweeper :suit_sweeper, :only => [:update,:create,:destroy]
  # end

  index do
    selectable_column
    id_column
    column :title
    actions
  end

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

    f.inputs "Свойства" do
      f.input :title
    end

    f.actions
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
c80_estate-0.1.0.7 app/admin/c80_estate/astatuses.rb
c80_estate-0.1.0.6 app/admin/c80_estate/astatuses.rb
c80_estate-0.1.0.5 app/admin/c80_estate/astatuses.rb
c80_estate-0.1.0.4 app/admin/c80_estate/astatuses.rb
c80_estate-0.1.0.3 app/admin/c80_estate/astatuses.rb
c80_estate-0.1.0.2 app/admin/c80_estate/astatuses.rb
c80_estate-0.1.0.1 app/admin/c80_estate/astatuses.rb