Skip to content
Browse files

fix small bug in Member.active

  • Loading branch information...
1 parent 3afea72 commit f2aeae3cfb2f1658b97cb489ae4b96cd332338a7 @gnandretta committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/member.rb
View
2 app/models/member.rb
@@ -25,7 +25,7 @@ class Member < ActiveRecord::Base
# Finds all members who currently have an active membership
# @return [Array] The list of members, which are currently active
def self.active
- Member.all.collect {|member| member if member.membership_active?}
+ Member.all.select { |member| member.membership_active? }
end
# Checks membership status at a given Date/Time

0 comments on commit f2aeae3

Please sign in to comment.
Something went wrong with that request. Please try again.