thecore 1.3.24 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/user.rb +13 -4
- data/db/migrate/20180612075225_add_lock_version_to_users.rb +5 -0
- data/lib/thecore/version.rb +1 -1
- data/test/dummy/log/development.log +15 -0
- metadata +3 -4
- data/db/migrate/20151201145832_add_external_to_user.rb +0 -5
- data/db/migrate/20160331101901_add_code_to_user.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c840ca419a8cdd40e4edcee9536ce1cfd9cf262f
|
4
|
+
data.tar.gz: 4699cc7f9b4c4a711fafef25a89d4961078a165a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02ddd8d6b52f301c357d8246b9cf6cba2994000fdabf6f8a71e7d186492c7f60da7d80e09b8d30c2c7b042f97d446913293a3403e1737678038d18db544f545d
|
7
|
+
data.tar.gz: 7ebc6c9a3b4333566004bb7ef21c6b37cb6794a1e0e93b3ecb21738e6b475b0ca9d8f39d395e6966625f277d1abf8a9cdc002ebb3747ec1bebcc4bf8e2c7de10
|
data/app/models/user.rb
CHANGED
@@ -117,10 +117,13 @@ class User < ApplicationRecord
|
|
117
117
|
configure :email do
|
118
118
|
visible false
|
119
119
|
end
|
120
|
-
|
120
|
+
exclude_fields :lock_version
|
121
121
|
# include UserRailsAdminListConcern
|
122
122
|
end
|
123
|
-
|
123
|
+
show do
|
124
|
+
#exclude_fields :id
|
125
|
+
exclude_fields :lock_version
|
126
|
+
end
|
124
127
|
create do
|
125
128
|
field :password do
|
126
129
|
required true
|
@@ -128,10 +131,16 @@ class User < ApplicationRecord
|
|
128
131
|
field :password_confirmation do
|
129
132
|
required true
|
130
133
|
end
|
131
|
-
|
134
|
+
field :lock_version, :hidden do
|
135
|
+
visible true
|
136
|
+
end
|
132
137
|
# include UserRailsAdminCreateConcern
|
133
138
|
end
|
134
|
-
|
139
|
+
update do
|
140
|
+
configure :lock_version, :hidden do
|
141
|
+
visible true
|
142
|
+
end
|
143
|
+
end
|
135
144
|
edit do
|
136
145
|
field :password do
|
137
146
|
required false
|
data/lib/thecore/version.rb
CHANGED
@@ -4,3 +4,18 @@ Selected Locale: en
|
|
4
4
|
Selected Locale: en
|
5
5
|
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 11]]
|
6
6
|
Selected Locale: en
|
7
|
+
Selected Locale: en
|
8
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
9
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
10
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
11
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
12
|
+
by setting up a rake task which runs
|
13
|
+
|
14
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
15
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
16
|
+
|
17
|
+
for all models and all boolean columns, after which the flag must be set to
|
18
|
+
true by adding the following to your application.rb file:
|
19
|
+
|
20
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
21
|
+
(called from <top (required)> at /home/gabrieletassoni/Git/rails/thecore_project/thecore/test/dummy/config/environment.rb:5)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -342,11 +342,10 @@ files:
|
|
342
342
|
- db/migrate/20141010133701_devise_create_users.rb
|
343
343
|
- db/migrate/20150806091039_add_authentication_token_to_users.rb
|
344
344
|
- db/migrate/20150825101810_add_roles_mask_to_users.rb
|
345
|
-
- db/migrate/20151201145832_add_external_to_user.rb
|
346
|
-
- db/migrate/20160331101901_add_code_to_user.rb
|
347
345
|
- db/migrate/20160331101902_add_admin_user.rb
|
348
346
|
- db/migrate/20161029154134_remove_friendly_id_slugs.rb
|
349
347
|
- db/migrate/20180410134659_create_active_storage_tables.active_storage.rb
|
348
|
+
- db/migrate/20180612075225_add_lock_version_to_users.rb
|
350
349
|
- db/seeds.rb
|
351
350
|
- lib/abilities.rb
|
352
351
|
- lib/active_record_extension.rb
|