Module: Manage::UsersHelper

Defined in:
lib/generators/sunrise/templates/helpers/manage/users_helper.rb

Instance Method Summary collapse

Instance Method Details

#manage_user_avatar_tag(record, options = {}) ⇒ Object



2
3
4
5
# File 'lib/generators/sunrise/templates/helpers/manage/users_helper.rb', line 2

def manage_user_avatar_tag(record, options={})
  options.symbolize_keys!
  record_asset_tag(record, :avatar, "manage/user_pic.gif", options.merge(:title => record.try(:name)))
end