This instance will be upgraded to Heptapod 0.25.0 (final) on 2021-09-22 at 15:00 UTC+2 (a few minutes of down time)

Commit 02b62634 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Committing from Rails: accept plain string action names

For instance, commit attemps from the "Web IDE" end up using
"update" (String) instead of :update (Symbol).

--HG--
branch : heptapod
parent 30ae852d0bfe
......@@ -669,7 +669,7 @@ def multi_action(user, branch_name:, message:, actions:,
logger.info(
"#{logprefix} Performing '#{action[:action]}' for #{file_path}")
case action[:action]
case action[:action].to_sym
when :create
if File.exists?(abspath)
raise ActionError, "A file with this name already exists"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment