foreman_hosts 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  class ForemanHosts::Syhostmodel < ActiveRecord::Base
2
2
 
3
- attr_accessible :name, :remark, :syhostmodeldetails_attributes
3
+ attr_accessible :name, :remark #, :syhostmodeldetails_attributes
4
4
  has_many :syhostmodeldetails, class_name: "ForemanHosts::Syhostmodeldetail"
5
- accepts_nested_attributes_for :syhostmodeldetails, reject_if: proc { |attributes| attributes['no'].blank?| attributes['status'].blank? | attributes['fact_name_id'].blank? } , allow_destroy: true
5
+ #accepts_nested_attributes_for :syhostmodeldetails, reject_if: proc { |attributes| attributes['no'].blank?| attributes['status'].blank? | attributes['fact_name_id'].blank? } , allow_destroy: true
6
6
 
7
7
 
8
8
  end
@@ -21,10 +21,10 @@ module ForemanHosts
21
21
  # Add permissions
22
22
  security_block :foreman_hosts do
23
23
  permission :view_foreman_hosts, :'foreman_hosts/hosts' => [:report_index]
24
- permission :view_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:index, :show]
25
- permission :new_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:new, :create]
26
- permission :edit_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:edit, :update]
27
- permission :delete_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:destroy]
24
+ # permission :view_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:index, :show]
25
+ # permission :new_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:new, :create]
26
+ # permission :edit_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:edit, :update]
27
+ # permission :delete_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:destroy]
28
28
  end
29
29
 
30
30
  # Add a new role called 'Discovery' if it doesn't exist
@@ -1,3 +1,3 @@
1
1
  module ForemanHosts
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_hosts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: