Skip to content

Commit

Permalink
fix commericals function call
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Jul 20, 2024
1 parent 78563c1 commit 92fa560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/commercial.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Commercial < ApplicationRecord

def self.render_from_url(url)
register_provider
url = generate_snap_embed(url)
url = Commercial.generate_snap_embed(url)
begin
resource = OEmbed::Providers.get(url, maxwidth: 560, maxheight: 315)
{ html: resource.html.html_safe }
Expand Down

0 comments on commit 92fa560

Please sign in to comment.