app/admin/c80_estate/uoms.rb in c80_estate-0.1.0.7 vs app/admin/c80_estate/uoms.rb in c80_estate-0.1.0.8

- old
+ new

@@ -1,8 +1,8 @@ # единицы измерения ActiveAdmin.register C80Estate::Uom, :as => 'Uom' do - menu :label => "Единицы измерения", :parent => "Настройки" + menu :label => "Единицы измерения", :parent => "Настройки", :if => proc { current_admin_user.can_view_settings? } permit_params :title, :comment, :is_number config.sort_order = 'title_desc' \ No newline at end of file