includes the active storage validation gem
Used 26 times
J
Julian Rubisch
Usage
For detailed usage instructions, see https://github.com/igorkasyanchuk/active_storage_validations
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/xYasbW"
Template Source
Review the code before running this template on your machine.
gem 'active_storage_validations'
gem 'mini_magick', '>= 4.9.5' if yes?("Do you want to include mini_magic, to use :dimension validator or :aspect_ratio validator?")
run 'bundle install'