lib/maglev/config.rb
# set to a model name/class to enable current user functionality. Typically
# you would set this to User (or 'User')
set to a model name/class to enable current user functionality. Typically
you would set this to User (or 'User')
set to a model name / class to enable current user functionality . Typically you would set this to User ( or ' User ' )
def current_user_class
      if @current_user_class.is_a?(String) || @current_user_class.is_a?(Symbol)
        self.current_user_class = Object.const_get(@current_user_class.to_s)
      end
      @current_user_class
    end
def current_user_class if @current_user_class . is_a? ( String ) || @current_user_class . is_a? ( Symbol ) self . current_user_class = Object . const_get ( @current_user_class . to_s ) end @current_user_class end
set to a model name/class to enable current user functionality.
set to a model name / class to enable current user functionality .
# convert the current_user_class to an actual class if it isnt one already