Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adorable_avatars

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adorable_avatars

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Adorable Avatars

Easily add random persisted avatars to users (and not only) in your rails application. This gem is only a simple wrapper for adorable avatars api.

Install

Add this to Gemfile:

gem 'adorable_avatars'

and run bundle install

Usage

In view simply add:

<%= adorable_avatar user.email %>

By default the size is 150px. If you want to specify size of the avatar, provide method with size option:

<%= adorable_avatar user.email, size: 50 %>

You can also set default size in an initializer

# config/intitializers/adorable_avatars.rb
AdorableAvatars.setup do |config|
  config.default_size = 200
end

| Note: Size can range from 40px to 285px

Adorable avatars create simple wrapper around image_tag, so you can use all options that image_tag accepts

<%= adorable_avatar user.email, size: 50, alt: 'Adorable avatar' %>

FAQs

Package last updated on 31 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc