ecm_user_area2_backend 1.1.4 → 1.1.5
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e338159ab4ddb9376cf4f85d0867e936a89ac97
|
4
|
+
data.tar.gz: f7c5baa744620bea61d51b57ad42684ef3c51914
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1712fff6711b3a926478ef23f39152111c68dbddef2485b36b37504cfb96714d0a52a2f50558900524bd3f75aa75d1996f45e040fe5337409633c3c1d5f66939
|
7
|
+
data.tar.gz: 5fe3950fd10238747a95ce29167a93812c7e5e19a6e23938b3c64546a242894e1c7482861649f96da1ad2679f274edf5f11dc8893155215b194a99d32dc68686
|
@@ -1,31 +1,29 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
#
|
7
|
-
Ecm::UserArea::User
|
8
|
-
end
|
1
|
+
module Ecm
|
2
|
+
module UserArea
|
3
|
+
module Backend
|
4
|
+
class UsersController < Itsf::Backend::Resource::BaseController
|
5
|
+
include ResourcesController::Sorting
|
9
6
|
|
10
|
-
|
11
|
-
|
7
|
+
def self.resource_class
|
8
|
+
Ecm::UserArea::User
|
9
|
+
end
|
12
10
|
|
13
|
-
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|
11
|
+
def autocomplete
|
12
|
+
@collection = collection_scope.autocomplete(params[:term])
|
17
13
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
14
|
+
respond_to do |format|
|
15
|
+
format.json { render json: @collection.map { |q| q.as_json(style: :autocomplete) } }
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
def permitted_params
|
22
|
+
params
|
23
|
+
.require(:user)
|
24
|
+
.permit(:email, :password, :password_confirmation, :active, :confirmed, :approved)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
30
28
|
end
|
31
29
|
end
|
@@ -1,2 +1,2 @@
|
|
1
|
-
= table.column :email
|
2
|
-
= table.timestamps
|
1
|
+
= table.column :email, sort: true
|
2
|
+
= table.timestamps(sort: true)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_user_area2_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|