spina-admin-conferences-accounts 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/spina/admin/conferences/accounts/application_controller.rb +2 -0
- data/app/controllers/spina/admin/conferences/accounts/public_users_controller.rb +1 -2
- data/app/views/spina/admin/conferences/accounts/public_users/_form.html.haml +1 -1
- data/lib/spina/admin/conferences/accounts/engine.rb +2 -0
- data/lib/spina/admin/conferences/accounts/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: 6c2cbc8ecc02f0fee92ae80e1a1d35fb14556c11fd7febee11d38198afd1508a
|
4
|
+
data.tar.gz: d5f74e945ead1bb6f28f6350b1d4ea7634f98654c2e0633b2ccf9c985755518c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b7f0e445c7f2e18623ed6044e778b34ca5df0e07fcd497e8618bbcdd63196fb529979500c71120d73eba81808d7b9c1c8c4757976e868bffdb607e19d3a60ce
|
7
|
+
data.tar.gz: e080537404ab35674e788045950fd324516cdb2f1b1eed221a7584f42a7dbce036677890ed5a8ff148ba56d9af3aafbb163a166141d757ab762967018e4d1711
|
@@ -6,6 +6,8 @@ module Spina
|
|
6
6
|
module Accounts
|
7
7
|
# Custom controller for accounts plugin. Sets the layout and adds a flash type.
|
8
8
|
class ApplicationController < AdminController
|
9
|
+
helper ::Spina::Engine.routes.url_helpers
|
10
|
+
|
9
11
|
add_flash_types :success
|
10
12
|
|
11
13
|
layout :admin_layout, only: %i[new edit]
|
@@ -36,8 +36,7 @@ module Spina
|
|
36
36
|
private
|
37
37
|
|
38
38
|
def public_user_params
|
39
|
-
params.require(:
|
40
|
-
:institution)
|
39
|
+
params.require(:public_user).permit(:email, :first_name, :last_name, :institution)
|
41
40
|
end
|
42
41
|
|
43
42
|
def set_breadcrumb
|
@@ -8,7 +8,7 @@
|
|
8
8
|
= link_to '#', data: { close_notification: true } do
|
9
9
|
= icon 'cross'
|
10
10
|
|
11
|
-
= form_for @user, html: {autocomplete: "off"} do |f|
|
11
|
+
= form_for [:admin_conferences_accounts, @user], html: {autocomplete: "off"} do |f|
|
12
12
|
%header#header
|
13
13
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
14
14
|
|
@@ -6,6 +6,8 @@ module Spina
|
|
6
6
|
module Accounts
|
7
7
|
# The plugin engine. Loads the plugin in Spina.
|
8
8
|
class Engine < ::Rails::Engine
|
9
|
+
isolate_namespace Spina::Admin::Conferences::Accounts
|
10
|
+
|
9
11
|
config.before_initialize do
|
10
12
|
::Spina::Plugin.register do |plugin|
|
11
13
|
plugin.name = 'conferences-accounts'
|