Module: Ramaze::Helper::User

Defined in:
lib/ramaze/helper/user.rb

Overview

In order to use this helper, define the :user_model trait in your controller

Defined Under Namespace

Classes: Wrapper

Instance Method Summary collapse

Instance Method Details

#userObject

yield or instantinate Wrapper for @user_helper



7
8
9
10
11
12
13
# File 'lib/ramaze/helper/user.rb', line 7

def user
  if instance_variable_defined?('@user_helper')
    @user_helper
  else
    @user_helper = Wrapper.new(self, ancestral_trait[:user_model])
  end
end