summaryrefslogtreecommitdiffstats
path: root/lib/puppet/rails
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/rails')
-rw-r--r--lib/puppet/rails/host.rb8
-rw-r--r--lib/puppet/rails/resource.rb6
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/puppet/rails/host.rb b/lib/puppet/rails/host.rb
index 7a3fe75bc..854df2bd4 100644
--- a/lib/puppet/rails/host.rb
+++ b/lib/puppet/rails/host.rb
@@ -78,7 +78,7 @@ class Puppet::Rails::Host < ActiveRecord::Base
# This only runs if time debugging is enabled.
write_benchmarks
- return host
+ host
end
# Return the value of a fact.
@@ -238,7 +238,7 @@ class Puppet::Rails::Host < ActiveRecord::Base
db_resource.save
- return db_resource
+ db_resource
end
@@ -256,7 +256,7 @@ class Puppet::Rails::Host < ActiveRecord::Base
end
log_accumulated_marks "Resource merger"
- return additions
+ additions
end
def remove_unneeded_resources(compiled, existing)
@@ -284,7 +284,7 @@ class Puppet::Rails::Host < ActiveRecord::Base
# dependent objects get removed, too.
Puppet::Rails::Resource.destroy(deletions) unless deletions.empty?
- return resources
+ resources
end
def find_resources_parameters(resources)
diff --git a/lib/puppet/rails/resource.rb b/lib/puppet/rails/resource.rb
index 3b2e78b3a..46b49ba1b 100644
--- a/lib/puppet/rails/resource.rb
+++ b/lib/puppet/rails/resource.rb
@@ -48,7 +48,7 @@ class Puppet::Rails::Resource < ActiveRecord::Base
end
def file
- return (f = self.source_file) ? f.filename : nil
+ (f = self.source_file) ? f.filename : nil
end
def file=(file)
@@ -84,7 +84,7 @@ class Puppet::Rails::Resource < ActiveRecord::Base
end
def [](param)
- return super || parameter(param)
+ super || parameter(param)
end
# Make sure this resource is equivalent to the provided Parser resource.
@@ -226,6 +226,6 @@ class Puppet::Rails::Resource < ActiveRecord::Base
# Store the ID, so we can check if we're re-collecting the same resource.
obj.rails_id = self.id
- return obj
+ obj
end
end