Project

General

Profile

« Previous | Next » 

Revision 5d264a2d

Added by Ohad Levy over 12 years ago

  • ID 5d264a2db100fd1ba7c505697076c4072698b094

refactor - various facts cleanups

View differences:

app/controllers/users_controller.rb
@user = User.find(params[:id])
if @user.user_facts.count == 0
user_fact = @user.user_facts.build :operator => "==", :andor => "or"
user_fact.fact_name_id = Puppet::Rails::FactName.first.id if Puppet::Rails::FactName.first
true
user_fact.fact_name_id = FactName.first.id if FactName.first
end
end

Also available in: Unified diff