From ef455b4cff0f08038ec8b09ccdda78ac6c85eec7 Mon Sep 17 00:00:00 2001 From: Adam Price Date: Thu, 30 Jan 2014 16:17:17 -0500 Subject: [PATCH] environments model - trivial spacing changes --- app/models/katello/kt_environment.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/app/models/katello/kt_environment.rb b/app/models/katello/kt_environment.rb index 8027fef4e1f..63eb7902566 100644 --- a/app/models/katello/kt_environment.rb +++ b/app/models/katello/kt_environment.rb @@ -104,7 +104,7 @@ def destroy_event after_destroy :unset_users_with_default - ERROR_CLASS_NAME = "Environment" + ERROR_CLASS_NAME = "Environment" def library? self.library @@ -181,12 +181,10 @@ def is_deletable? return true if self.organization.nil? || self.organization.being_deleted? if library? - errors.add :base, - _("Library environments may not be deleted.") + errors.add :base, _("Library environments may not be deleted.") return false elsif !successor.nil? - errors.add :base, - _("Environment %s has a successor. Only the last environment on a path can be deleted") % self.name + errors.add :base, _("Environment %s has a successor. Only the last environment on a path can be deleted") % self.name return false end @@ -316,9 +314,9 @@ def available_releases def create_default_content_view_version if library? - #Sadly this has to be created here, if it is created in the org - # it will not actually exist when we go to create library and so - # we can't look it up via a query (org.default_content_view) + # Sadly this has to be created here, if it is created in the org + # it will not actually exist when we go to create library and so + # we can't look it up via a query (org.default_content_view) content_view = self.organization.default_content_view if content_view.nil? content_view = Katello::ContentView.new(:default => true, :name => "Default Organization View",