lib/ditty/helpers/wisper.rb in ditty-0.4.0 vs lib/ditty/helpers/wisper.rb in ditty-0.4.1
- old
+ new
@@ -4,10 +4,10 @@
module Ditty
module Helpers
module Wisper
def log_action(action, args = {})
- args[:user] ||= current_user
+ args[:user] = current_user unless args.key? :user
broadcast(action, args)
end
end
end
end