Skip to content

Commit

Permalink
Merge pull request #218 from razeware/WEB-6415
Browse files Browse the repository at this point in the history
WEB-6415: Missing method error fix
  • Loading branch information
KapilSachdev authored Oct 2, 2023
2 parents 17eaf43 + 07d63d3 commit 55a0c36
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 55a0c36

Please sign in to comment.