Permalink
Browse files

Cancan alias_action for download methods

  • Loading branch information...
1 parent dfbbfa3 commit 9e60e6042d5092506f7a92bba6a3d1c0907383fa @VictorSB VictorSB committed Jun 21, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/social_stream/ability.rb
View
5 lib/social_stream/ability.rb
@@ -4,7 +4,10 @@ class Ability
# Create a new ability for this user, who is currently representing subject
def initialize(subject)
-
+
+ #Download alias action
+ alias_action :download, :to => :show
+
# Activity Objects
(SocialStream.objects - [ :actor ]).map{ |obj|
obj.to_s.classify.constantize

0 comments on commit 9e60e60

Please sign in to comment.