code/superant.com.schedule/renameeventdata.rb in rwdschedule-0.92 vs code/superant.com.schedule/renameeventdata.rb in rwdschedule-0.93
- old
+ new
@@ -1,14 +1,14 @@
- # this code is to change the contact name
- def changeeventdata
- oldName = $rwdschedule_directory + "/" + @a_viewevent + ".sch"
+ # this code is to change the contact name
+ def changeeventdata
+ oldName = $rwdschedule_directory + "/" + @a_viewevent + ".sch"
newName = $rwdschedule_directory + "/" + @a_changeeventdata + ".sch"
- begin
- File.rename(oldName, newName)
+ begin
+ File.rename(oldName, newName)
@eventfilechangeresult = "File Renamed!"
- rescue
- @eventfilechangeresult = "rename error"
- end
-
+ rescue
+ @eventfilechangeresult = "rename error"
+ end
+
end
-
+