Sha256: 9c0891ca20ba3b1ba4a577dd66743b259fb26f72d7272ae0858e577d2fd82614
Contents?: true
Size: 870 Bytes
Versions: 30
Compression:
Stored size: 870 Bytes
Contents
# ПОДкатегории строительных материалов ActiveAdmin.register C80Estate::Astatus, :as => 'Astatus' do menu :label => "Настройки", :priority => 3#, :if => :foo menu :label => "Статусы", :parent => "Настройки", :if => proc { current_admin_user.can_view_settings? } 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
30 entries across 30 versions & 1 rubygems