class Notifications::Configuration
Attributes
authenticate_user_method[RW]
authenticate_user method in your Controller, default: nil
current_user_method[RW]
current_user method name in your Controller, default: 'current_user'
user_avatar_url_method[RW]
method of user avatar in User model, default: nil
We suggest you give image size more than 48x48 px.
Example:
class User
def avatar_url self.avatar.url('48x48') end
end
config.user_avatar_url_method = :avatar_url
user_class[RW]
class name of you User model, default: 'User'
user_name_method[RW]
method of user name in User model, default: 'name'
user_profile_url_method[RW]
method name of user profile page path, in User model, default: nil Example:
class User
def profile_url "http://www.host.com/u/#{self.username}" end
end
config.user_profile_url_method = 'profile_url'