lib/percheron/actions/rename.rb in percheron-0.6.3 vs lib/percheron/actions/rename.rb in percheron-0.6.4

- old
+ new

@@ -9,11 +9,12 @@ @temporary_name = temporary_name @new_name = new_name end def execute! - rename! - container + results = [] + results << rename! + results.compact.empty? ? nil : container end private attr_reader :container, :temporary_name, :new_name