Skip to content

Commit

Permalink
WEB-6415: Missing method error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KapilSachdev committed Oct 2, 2023
1 parent 5540664 commit 07d63d3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions app/lib/util/slack_notifiable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,27 @@ def standard_video_course_fields(video_course:)
]
end

def standard_content_module_fields(content_module:)
[
{
type: 'mrkdwn',
text: "*Content Module*\n#{content_module&.title || '_unknown_'}"
},
{
type: 'mrkdwn',
text: "*Short Code*\n`#{content_module&.shortcode || 'unknown'}`"
},
{
type: 'mrkdwn',
text: "*Version*\n#{content_module&.version || '_unknown_'}"
},
{
type: 'mrkdwn',
text: "*Environment*\n`#{ENVIRONMENT}`"
}
]
end

def intro_section(fields:, message:, image_url:, alt_text:)
{
type: 'section',
Expand Down

0 comments on commit 07d63d3

Please sign in to comment.