party_boy 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/party_boy.rb +3 -1
- data/party_boy.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/lib/party_boy.rb
CHANGED
@@ -30,7 +30,7 @@ module Party
|
|
30
30
|
klazz.has_many :outgoing_friendships, :as => :requestor, :include => :requestee
|
31
31
|
klazz.has_many :incoming_friendships, :as => :requestee, :include => :requestor
|
32
32
|
end
|
33
|
-
|
33
|
+
|
34
34
|
include Party::Boy::FriendlyInstanceMethods
|
35
35
|
end
|
36
36
|
|
@@ -208,6 +208,7 @@ module Party
|
|
208
208
|
(rel = relationship_from(friendship_or_something)) && rel.destroy
|
209
209
|
end
|
210
210
|
|
211
|
+
|
211
212
|
[:reject_friendship, :destroy_friendship, :leave_friendship].each{|key| alias_method key, :deny_friendship}
|
212
213
|
alias_method :accept_friendship, :request_friendship
|
213
214
|
|
@@ -222,6 +223,7 @@ module Party
|
|
222
223
|
arr && Relationship.find(:first, :conditions => [(['(requestor_id = ? AND requestor_type = ? AND requestee_type = ? AND requestee_id = ?)']*2).join(' OR '), arr, arr.reverse].flatten) || nil
|
223
224
|
end
|
224
225
|
end
|
226
|
+
|
225
227
|
end
|
226
228
|
end
|
227
229
|
end
|
data/party_boy.gemspec
CHANGED