[noosfero/noosfero][rails4] rails4: fix typo

Bráulio Bhavamitra gitlab at gitlab.com
Fri Apr 3 17:26:49 BRT 2015


Bráulio Bhavamitra pushed to rails4 at Noosfero / noosfero


Commits:
d6d5e6cc by Braulio Bhavamitra at 2015-04-03T17:26:55Z
rails4: fix typo

- - - - -


1 changed file:

- app/models/profile.rb


Changes:

=====================================
app/models/profile.rb
=====================================
--- a/app/models/profile.rb
+++ b/app/models/profile.rb
@@ -83,7 +83,7 @@ class Profile < ActiveRecord::Base
 
   scope :memberships_of, -> (person) {
     select('DISTINCT profiles.*').
-    joins(:role_assignments)
+    joins(:role_assignments).
     where('role_assignments.accessor_type = ? AND role_assignments.accessor_id = ?', person.class.base_class.name, person.id)
   }
   #FIXME: these will work only if the subclass is already loaded


View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/d6d5e6cc660ee24efd6d75c5ef83f2e712732db5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150403/8845776f/attachment.html>


More information about the Noosfero-dev mailing list