foreman_users 0.0.18.2 → 0.0.18.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/foreman_users/user.rb +1 -1
- data/lib/foreman_users/version.rb +1 -1
- metadata +1 -1
@@ -5,7 +5,7 @@ module ForemanUsers
|
|
5
5
|
attr_accessible :title, :body, :username, :ensure , :gid, :groups, :home , :password, :password_max_age, :password_min_age, :shell, :uid, :groups_attributes
|
6
6
|
|
7
7
|
|
8
|
-
has_many :groups, :class_name => 'ForemanUsers::
|
8
|
+
has_many :groups, :class_name => 'ForemanUsers::ForemanUsers::Group', :foreign_key => :user_id
|
9
9
|
accepts_nested_attributes_for :groups, reject_if: proc { |attributes| attributes['gid'].blank?| attributes['name'].blank? | attributes['ensure'].blank? } , allow_destroy: true
|
10
10
|
|
11
11
|
after_create :create_dir
|