Sha256: 59512c908cc57727affafde5439f7736b887ac989214969241a81efe8d99e545

Contents?: true

Size: 811 Bytes

Versions: 1

Compression:

Stored size: 811 Bytes

Contents

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

  menu :label => "Роли", :parent => "Настройки"

  permit_params :title,
                :desc

  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
      f.input :desc, input_html: { rows: 3 }
    end

    f.actions
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
c80_estate-0.1.0 app/admin/c80_estate/role_types.rb