Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jarydkrish/attach-in-model-callbacks-rails-5

Example repo for rails active storage callbacks in Rails 5
https://github.com/jarydkrish/attach-in-model-callbacks-rails-5

rails5

Last synced: 9 days ago
JSON representation

Example repo for rails active storage callbacks in Rails 5

Awesome Lists containing this project

README

        

[![Build Status](https://github.com/jarydkrish/attach-in-model-callbacks-rails-5/workflows/Ruby/badge.svg)](https://github.com/jarydkrish/attach-in-model-callbacks-rails-5/actions)

Example of ActiveStorage in Rails 5.2.3. Saving an attachment in an ActiveModel callback works in this example.

Please review the [User Model](app/models/user.rb), and it's corresponding [test](test/models/user_test.rb)