app/models/adminpanel/role.rb in adminpanel-2.5.3 vs app/models/adminpanel/role.rb in adminpanel-2.5.4
- old
+ new
@@ -21,12 +21,14 @@
'placeholder' => 'Community Manager'
}
},
{
'permission_ids' => {
- 'type' => 'has_many',
- 'model' => "Adminpanel::Permission",
- 'label' => 'Permisos'
+ 'label' => 'Permisos',
+ 'type' => 'checkbox',
+ 'options' => Proc.new { |object|
+ Adminpanel::Permission.all
+ },
}
}
]
end