This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- replace all turbo frames with a class of "notifications" --> | |
<%= turbo_stream.replace_all "div.notifications" do %> | |
<%= render(Notification::BadgeComponent.new(notifications: current_user.notifications)) %> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- replace the turbo frame with id="notifications" --> | |
<%= turbo_stream.replace :notifications do %> | |
<%= render(Notification::BadgeComponent.new(notifications: current_user.notifications)) %> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
# This file includes several tasks to help with the management of the audited gem. The two main tasks are: | |
# | |
# yaml_to_jsonb - this will migrate yaml data stored in a column named audited_changes_yaml to jsonb data stored | |
# in a column named audited_changes. | |
# | |
# scrub - this will look at all of the columns that have been excluded from audited classes and ensure that | |
# they are all removed from the jsonb data. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creating a Digital Ocean droplet running Rails + Postgres with persistant storage and https | |
#-------------------------------------------------------------------------------------------- | |
# For your ctrl-D pleasure... | |
# SERVER_IP | |
# APP_NAME | |
# RAILS_SECRET (generate with `rails secret`) | |
# ADMIN_EMAIL | |