foreman_users 0.0.24 → 0.0.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- class ForemanUsers::Group < ActiveRecord::Base
1
+ class ForemanUsers::Sygroup < ActiveRecord::Base
2
2
  attr_accessible :groupname, :ensure, :gid, :groupable_type, :groupable_id, :user_id
3
- belongs_to :foreman_users_user, class_name: "ForemanUsers::User"
3
+ belongs_to :foreman_users_syuser, class_name: "ForemanUsers::Syuser",foreign_key: "user_id"
4
4
  end
@@ -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
6
+ has_many :sygroups, class_name: "ForemanUsers::Sygroup", foreign_key: "user_id"
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
@@ -1,3 +1,3 @@
1
1
  module ForemanUsers
2
- VERSION = '0.0.24'
2
+ VERSION = '0.0.25'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_users
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: