No commit activity in last 3 years
No release in over 3 years
Easy installation and helpers for using active storage for an avatar
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16.a
~> 5.2
~> 10.0

Runtime

 Project Readme

ActsAsHocAvatarable

Ease the use of ActiveStorage as an avatar for eg. user model. This is specially made for API usage, where data is delivered as a base64 string. Images can be resized on saving. This uses ActiveStorage, thus minimum rails version is 5.2

Installation

Add this line to your application's Gemfile:

gem 'acts_as_hoc_avatarable'

And then execute:

$ bundle

Or install it yourself as:

$ gem install acts_as_hoc_avatarable

Usage

install it with:

$ rails generate acts_as_hoc_avatarable:install

And finally migrate with:

$ rails db:migrate

License

The gem is available as open source under the terms of the MIT License.