lib/onebox/layout.rb in onebox-1.5.30 vs lib/onebox/layout.rb in onebox-1.5.31

- old
+ new

@@ -53,15 +53,35 @@ def repository_path record[:repository_path] end + def twitter_label1 + record[:twitter_label1] + end + + def twitter_data1 + record[:twitter_data1] + end + + def twitter_label2 + record[:twitter_label2] + end + + def twitter_data2 + record[:twitter_data2] + end + def details { link: record[:link], title: record[:title], domain: domain, repository_path: repository_path, + twitter_label1: record[:twitter_label1], + twitter_data1: record[:twitter_data1], + twitter_label2: record[:twitter_label2], + twitter_data2: record[:twitter_data2], subname: view.template_name, view: view.to_html } end end