Sha256: 3130a89d35c5064db9655dafd725259cf9efc42abe9a17e420d352c2c086fd6e
Contents?: true
Size: 674 Bytes
Versions: 6
Compression:
Stored size: 674 Bytes
Contents
# Simple model to store basic info about the Ansible role class AnsibleRole < ApplicationRecord include Authorizable self.include_root_in_json = false validates :name, :presence => true, :uniqueness => true has_many :host_ansible_roles has_many_hosts :through => :host_ansible_roles, :dependent => :destroy has_many :hostgroup_ansible_roles has_many :hostgroups, :through => :hostgroup_ansible_roles, :dependent => :destroy scoped_search :on => :name, :complete_value => true scoped_search :on => :updated_at # Methods to be allowed in any template with safemode enabled class Jail < Safemode::Jail allow :name end end
Version data entries
6 entries across 6 versions & 1 rubygems