From 9e60e6042d5092506f7a92bba6a3d1c0907383fa Mon Sep 17 00:00:00 2001 From: VictorSB Date: Tue, 21 Jun 2011 09:34:32 +0200 Subject: [PATCH] Cancan alias_action for download methods --- lib/social_stream/ability.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/social_stream/ability.rb b/lib/social_stream/ability.rb index 7d705ec9..3671516c 100644 --- a/lib/social_stream/ability.rb +++ b/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