Commit aa251aaf201f8b0529a2ea2008797a601a529e97

Authored by Evandro Junior
1 parent 68ef367f
Exists in master

removed unnecessary local variables for view

Showing 1 changed file with 2 additions and 4 deletions   Show diff stats
lib/pairwise_plugin/pairwise_content.rb
@@ -59,11 +59,9 @@ class PairwisePlugin::PairwiseContent < Article @@ -59,11 +59,9 @@ class PairwisePlugin::PairwiseContent < Article
59 embeded = options.has_key? "embeded" 59 embeded = options.has_key? "embeded"
60 prompt_id = options["prompt_id"] 60 prompt_id = options["prompt_id"]
61 pairwise_content = self 61 pairwise_content = self
62 -  
63 - if not Environment.default.enabled_plugins.include? "PairwisePlugin" 62 + if not Environment.default.enabled_plugins.include? "PairwisePlugin"
64 proc do 63 proc do
65 - locals = {:pairwise_content => pairwise_content, :source => source, :embeded => embeded, :prompt_id => prompt_id }  
66 - render :file => 'content_viewer/closed_pool', :locals => locals 64 + render :file => 'content_viewer/closed_pool'
67 end 65 end
68 else 66 else
69 proc do 67 proc do