lotus_admin 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4398379a31a5394d89a2afb785e1c9ab334523aa84c419363ca4be7d812d6846
|
4
|
+
data.tar.gz: 6c453e3ac7713b27b10764018f21bbe898cbc5b1903497837afb000566621c7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26c243b53f82aecbcec522fa597d40fe32aac0e31dd67297e585e954084577d84aa25ef652f8c982b1b4f65fde7e8dcee502ac49a2bbefbcc45426e1d7ffe05a
|
7
|
+
data.tar.gz: ab8fee03884513fe5120b2a1eb470b1d989c47e86a3f7e02e7e0283a6782a1ad9bd3d3863d49c2eeb5c3dd8986b2030936459ce1c16dc39e3c644c49940a5399
|
@@ -1,5 +1,7 @@
|
|
1
1
|
module LotusAdmin
|
2
2
|
class User < ApplicationRecord
|
3
|
+
include Invitable
|
4
|
+
|
3
5
|
devise :database_authenticatable, :confirmable, :recoverable, :rememberable, :trackable, :validatable
|
4
6
|
|
5
7
|
validates :first_name, :last_name, presence: true
|
@@ -7,11 +9,5 @@ module LotusAdmin
|
|
7
9
|
def name
|
8
10
|
[ first_name, last_name ].join(' ')
|
9
11
|
end
|
10
|
-
|
11
|
-
def send_invited_email_notification
|
12
|
-
token = set_reset_password_token
|
13
|
-
|
14
|
-
LotusAdmin::UserMailer.invited(self, token).deliver_later
|
15
|
-
end
|
16
12
|
end
|
17
13
|
end
|
data/lib/lotus_admin/engine.rb
CHANGED
@@ -17,14 +17,5 @@ module LotusAdmin
|
|
17
17
|
FactoryBot.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__)
|
18
18
|
end
|
19
19
|
end
|
20
|
-
|
21
|
-
initializer :append_migrations do |app|
|
22
|
-
# This prevents migrations from being loaded twice from the inside of the gem itself (dummy test app)
|
23
|
-
if app.root.to_s !~ /#{root}/
|
24
|
-
config.paths['db/migrate'].expanded.each do |migration_path|
|
25
|
-
app.config.paths['db/migrate'] << migration_path
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
20
|
end
|
30
21
|
end
|
data/lib/lotus_admin/version.rb
CHANGED
data/spec/factories/users.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
FactoryBot.define do
|
2
|
-
factory :
|
2
|
+
factory :lotus_user, class: LotusAdmin.configuration.user_class_name do
|
3
3
|
first_name { 'Johnny' }
|
4
4
|
sequence(:last_name) { |n| "Appleseed #{ n }" }
|
5
5
|
sequence(:email) { |n| "user+#{ n }@gmail.com" }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lotus_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Millsaps-Brewer
|
@@ -374,6 +374,7 @@ files:
|
|
374
374
|
- app/jobs/lotus_admin/application_job.rb
|
375
375
|
- app/mailers/lotus_admin/application_mailer.rb
|
376
376
|
- app/mailers/lotus_admin/user_mailer.rb
|
377
|
+
- app/models/concerns/lotus_admin/invitable.rb
|
377
378
|
- app/models/lotus_admin/application_record.rb
|
378
379
|
- app/models/lotus_admin/filters/configuration.rb
|
379
380
|
- app/models/lotus_admin/user.rb
|