Commit 880278a9b2f1f838210a5c100d08a14e1a15aa5b

Authored by Francisco Marcelo de Araújo Lima Júnior
1 parent 696a5f90

#embed block: add width and height attributes

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/block.rb
@@ -21,7 +21,7 @@ class Block < ActiveRecord::Base @@ -21,7 +21,7 @@ class Block < ActiveRecord::Base
21 end 21 end
22 22
23 def embed_code(url) 23 def embed_code(url)
24 - html = "<iframe src='#{url}' frameborder='0'></iframe>" 24 + html = "<iframe src='#{url}' frameborder='0' width='1024' height='768' class='embed block #{self.class.name.to_css_class}'></iframe>"
25 end 25 end
26 26
27 # Determines whether a given block must be visible. Optionally a 27 # Determines whether a given block must be visible. Optionally a