Module: MoxieForum::ActsAsMoxieUser::Base::InstanceMethods

Defined in:
lib/moxie_forum/acts_as_moxie_user/base.rb

Instance Method Summary collapse

Instance Method Details

#admin?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/moxie_forum/acts_as_moxie_user/base.rb', line 44

def admin?
  false
end

#display_nameObject



40
41
42
# File 'lib/moxie_forum/acts_as_moxie_user/base.rb', line 40

def display_name
  "[user.display_name]"
end

#moderator?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/moxie_forum/acts_as_moxie_user/base.rb', line 48

def moderator?
  false
end

#profile_picObject



32
33
34
35
36
37
38
# File 'lib/moxie_forum/acts_as_moxie_user/base.rb', line 32

def profile_pic
  if self.id == nil
    "<span style='color: red;'><b>WARNING:</b> There is no current_user helper method within your application_controller.rb. Create this method such that it returns the instance of your logged in user object. The forum will not work correctly until you do this.</span>"
  else
    "[user.profile_pic]"
  end
end