lib/camaraderie/user.rb in camaraderie-0.1.2 vs lib/camaraderie/user.rb in camaraderie-0.1.3

- old
+ new

@@ -8,10 +8,10 @@ has_many :organizations, through: :memberships Camaraderie.membership_types.each do |type| class_eval <<-RUBY, __FILE__, __LINE__ + 1 def #{type}_of?(organization) - !!memberships.admins.where(organization: organization).exists? + !!memberships.#{type.pluralize}.where(organization: organization).exists? end RUBY end end end