Class: Users::Tags::Helpers

Inherits:
Object
  • Object
show all
Defined in:
lib/users/tags/helpers.rb

Class Method Summary collapse

Class Method Details

.current_user(tag) ⇒ Object



6
7
8
# File 'lib/users/tags/helpers.rb', line 6

def current_user(tag)
  User.find_by_id(tag.locals.page.request.session['user_id'])
end