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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9db8b0cd69531b2beb8a03b8eadb95ec790c1f5c31ea0a40e5c9d11127246446
4
- data.tar.gz: 0a14bd9eba950b256e454358301f98c8c7141b8c73648886276ccb20be2ad55e
3
+ metadata.gz: 6c2cbc8ecc02f0fee92ae80e1a1d35fb14556c11fd7febee11d38198afd1508a
4
+ data.tar.gz: d5f74e945ead1bb6f28f6350b1d4ea7634f98654c2e0633b2ccf9c985755518c
5
5
  SHA512:
6
- metadata.gz: 983cc4080be94112aabccfd0056d01e99320c8b3dcb45effab417e74b844ced1f1f29855effac126d22a0b78e3c713f7a6bf936a97b307648fbb77d893c1ef91
7
- data.tar.gz: 62f9f0f76ffa097fe7845f31c04c8c6c2d5b46c6ec65115bc3e5b31548d3b0ea61458172337020c8f25174e31d483943b136838b47aa1b32a35db839d85bed9d
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(:admin_conferences_accounts_public_user).permit(:email, :first_name, :last_name,
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'
@@ -4,7 +4,7 @@ module Spina
4
4
  module Admin
5
5
  module Conferences
6
6
  module Accounts
7
- VERSION = '0.1.0'
7
+ VERSION = '0.1.1'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spina-admin-conferences-accounts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis Van Steene