Project

General

Profile

« Previous | Next » 

Revision 5d264a2d

Added by Ohad Levy over 12 years ago

  • ID 5d264a2db100fd1ba7c505697076c4072698b094

refactor - various facts cleanups

View differences:

config/initializers/puppet.rb
has_many :user_facts
has_many :users, :through => :user_facts
named_scope :no_timestamp_fact, :conditions => ["fact_names.name <> ?",:_timestamp]
named_scope :timestamp_facts, :conditions => ["fact_names.name = ?", :_timestamp]
default_scope :order => 'LOWER(fact_names.name)'
def to_param
name
end
end
FactName = Puppet::Rails::FactName
# workaround for puppet bug http://projects.reductivelabs.com/issues/3949
if Facter.puppetversion == "0.25.5"
begin

Also available in: Unified diff