Skip to content

Commit

Permalink
Cancan alias_action for download methods
Browse files Browse the repository at this point in the history
  • Loading branch information
VSBDev committed Jun 21, 2011
1 parent dfbbfa3 commit 9e60e60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/social_stream/ability.rb
Expand Up @@ -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
Expand Down

0 comments on commit 9e60e60

Please sign in to comment.