po_box 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/app/controllers/po_box/emails_controller.rb +1 -1
- data/app/controllers/po_box/inboxes_controller.rb +1 -1
- data/lib/po_box/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b10bd76b362d28e5cc7d9c09eda401a900209a05637ba7ff6155228c08e18b9
|
4
|
+
data.tar.gz: 5bbe38a406dfd5635b322ca98838e2f58cfe7e556f0dd19629daa5021c541086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d59fc6330e0dab345da2e9c7281036138965239a8d1a8a560f274caeaba48da76031c182068dfe888541f6eefee2954142a00144c686406383d3eaaf2be4f9f8
|
7
|
+
data.tar.gz: d3512b157ab338591529e9de8a4036df12fa58db8697206b6d94ec5795364caeca313469e81d2441ea77c222b648d859fb2594b1ccee938c023608d675cb8d98
|
data/README.md
CHANGED
@@ -4,8 +4,8 @@ PoBox is a Ruby on Rails engine that provides inboxes and email addresses for yo
|
|
4
4
|
|
5
5
|
## Requirements
|
6
6
|
|
7
|
-
1. [ActiveStorage](https://edgeguides.rubyonrails.org/active_storage_overview.html) needs to be
|
8
|
-
2. [ActionMailbox](https://edgeguides.rubyonrails.org/action_mailbox_basics.html) needs to be
|
7
|
+
1. [ActiveStorage](https://edgeguides.rubyonrails.org/active_storage_overview.html) needs to be configured.
|
8
|
+
2. [ActionMailbox](https://edgeguides.rubyonrails.org/action_mailbox_basics.html) needs to be configured.
|
9
9
|
3. A model that the inbox and emails will be associated with needs to exist in the host application. e.g. `User` or `Account`.
|
10
10
|
|
11
11
|
## Installation
|
@@ -33,7 +33,7 @@ $ gem install po_box
|
|
33
33
|
**IMPORTANT:** Make sure you have ActiveStorage and ActionMailbox installed and configured.
|
34
34
|
|
35
35
|
1. `bin/rails po_box:install:migrations`
|
36
|
-
2. `bin/rails g po_box emailable_model` (where `emailable_model` is the name of the model you want to
|
36
|
+
2. `bin/rails g po_box emailable_model` (where `emailable_model` is the name of the model in your application you want to associate inboxes and email addresses to, e.g. `user`)
|
37
37
|
3. `bin/rails db:migrate`
|
38
38
|
4. `bin/rails po_box:backfill_emailables`
|
39
39
|
|
@@ -50,7 +50,7 @@ Send the email to the address that is associated with the emailable model. e.g.
|
|
50
50
|
```ruby
|
51
51
|
User.inboxes.first.address
|
52
52
|
|
53
|
-
# => "some#64b0@yourapp"
|
53
|
+
# => "some#64b0@yourapp.com"
|
54
54
|
```
|
55
55
|
|
56
56
|
<!-- If your emailable_class is a User -->
|
@@ -52,7 +52,7 @@ module PoBox
|
|
52
52
|
def set_inbox
|
53
53
|
@inbox = Inbox.find(params[:inbox_id])
|
54
54
|
rescue ActiveRecord::RecordNotFound
|
55
|
-
redirect_to
|
55
|
+
redirect_to inboxes_path, notice: "Inbox not found"
|
56
56
|
end
|
57
57
|
|
58
58
|
# Use callbacks to share common setup or constraints between actions.
|
data/lib/po_box/version.rb
CHANGED