Skip to content

Commit

Permalink
Fix expected parameter for action_models.scheduled_for (#993)
Browse files Browse the repository at this point in the history
action_models.scheduled_for shows the following error:
missing interpolation argument :for in "Scheduled for %{for}" ({:post_name=>"Post", :posts_possessive=>"Post’s", :team_name=>"dev", :teams_possessive=>"dev’s", :at=>"December 28 at 12:00 AM"} given)

When:
An action with SupportScheduling concern and at when an explicit scheduled_for datetime is set in the future at action creation time.
  • Loading branch information
remysaissy authored Dec 20, 2024
1 parent a4f1309 commit 2a9d17a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<% elsif action.is_a?(Actions::SupportsScheduling) && action.scheduled_for && !action.started? %>
<div class="uppercase text-xs text-slate-400">
<%= t('action_models.scheduled_for', at: display_date_and_time(action.scheduled_for)) %>
<%= t('action_models.scheduled_for', for: display_date_and_time(action.scheduled_for)) %>
</div>

<% elsif action.is_a?(Actions::HasProgress) && action.started? %>
Expand Down

0 comments on commit 2a9d17a

Please sign in to comment.