Skip to content

Commit

Permalink
#400 add name method to logged_action_decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed Apr 24, 2016
1 parent c2cf9c3 commit 1b404a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/decorators/logged_action_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
class LoggedActionDecorator < ApplicationDecorator
delegate_all

def name
"#{object.user.decorate.short_name} #{object.record.decorate.name}"
end

def user_short_name
object.user.decorate.short_name
end
Expand Down

0 comments on commit 1b404a8

Please sign in to comment.