foreman_users 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/foreman_users/syuser.rb +1 -1
- data/lib/foreman_users/version.rb +1 -1
- metadata +1 -1
@@ -3,7 +3,7 @@ class ForemanUsers::Syuser < ActiveRecord::Base
|
|
3
3
|
attr_accessible :title, :body, :name, :ensure , :gid, :groups, :home , :password, :password_max_age, :password_min_age, :shell, :uid, :sygroups_attributes
|
4
4
|
|
5
5
|
|
6
|
-
has_many :sygroups, class_name: "ForemanUsers::Sygroup"
|
6
|
+
has_many :sygroups, class_name: "ForemanUsers::Sygroup"
|
7
7
|
accepts_nested_attributes_for :sygroups, reject_if: proc { |attributes| attributes['gid'].blank?| attributes['name'].blank? | attributes['ensure'].blank? } , allow_destroy: true
|
8
8
|
|
9
9
|
after_create :create_dir
|