[Git][noosfero/noosfero][master] sniffer: fix typos in interests block
Bráulio Bhavamitra
gitlab at mg.gitlab.com
Wed Apr 12 13:57:34 BRT 2017
Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero
Commits:
19d1e4ea by Hugo Melo at 2017-04-12T13:50:35-03:00
sniffer: fix typos in interests block
- - - - -
1 changed file:
- plugins/sniffer/lib/sniffer_plugin/interests_block.rb
Changes:
=====================================
plugins/sniffer/lib/sniffer_plugin/interests_block.rb
=====================================
--- a/plugins/sniffer/lib/sniffer_plugin/interests_block.rb
+++ b/plugins/sniffer/lib/sniffer_plugin/interests_block.rb
@@ -18,11 +18,11 @@ class SnifferPlugin::InterestsBlock < Block
def interests
results = nil
- profile = block.owner
+ profile = self.owner
if profile.is_a?(Profile)
- results = profile.snnifer_opportunities
- results |= profile.inputs if sniffer.profile.enterprise?
+ results = profile.sniffer_opportunities
+ results |= profile.inputs if profile.enterprise?
else # Environment
results = SnifferPlugin::Opportunity.product_categories.limit(5).order('created_at DESC').all
results += Input.limit(5).order('created_at DESC').all
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/19d1e4ea7f2220f6d9f90a12c08880822edf8947
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170412/0ad5e425/attachment.html>
More information about the Noosfero-dev
mailing list