lib/mayl/commands/edit.rb in mayl-0.2.0 vs lib/mayl/commands/edit.rb in mayl-0.2.1

- old
+ new

@@ -26,14 +26,16 @@ # Public: Executes the command, editing the @key for the given @locale. # # Returns the key. def execute + key = qualified_key locale = locales.detect do |locale| locale.name.to_s == @locale.to_s end - locale.set @key, @value - @key + + locale.set key, @value + key end ####### private #######