rails_admin 2.0.0.rc → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -9
- data/config/locales/rails_admin.en.yml +1 -0
- data/lib/rails_admin/adapters/mongoid/association.rb +1 -1
- data/lib/rails_admin/config/actions/index.rb +1 -1
- data/lib/rails_admin/config/fields/types/belongs_to_association.rb +4 -0
- data/lib/rails_admin/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: abb27440720764e68f2c73906b3792c209dbae39f6a54690894e0d1c42983c5f
|
|
4
|
+
data.tar.gz: 2cc7c7588ab9419f9a486f185ea6f345e62c2b2b2e4588e39810f05c5b5a4fdf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4518ba5616e66359a663cb1e3978764fa230301eafedcf8fd51bf2257fd31f45ecbca50fd7d5bbcba7196b7b1b03e0822c31afd0183d01bcb842c3d2dd8a9f63
|
|
7
|
+
data.tar.gz: 5e65e91218271a2eb8b7bc5c44cd13769eb7427653382033b3f784442f3ceaf2c5fb739e924bd69b103b3af84f4f390f33de2ef2ec13c8b268c4af49187914fb
|
data/README.md
CHANGED
|
@@ -16,14 +16,6 @@
|
|
|
16
16
|
|
|
17
17
|
RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data.
|
|
18
18
|
|
|
19
|
-
## Announcements
|
|
20
|
-
|
|
21
|
-
### [Action required] Security issue
|
|
22
|
-
|
|
23
|
-
> **RailsAdmin prior to 1.3.0 have been reported to have XSS vulnerability.** We strongly recommend that you upgrade RailsAdmin to 1.3.0 or later as soon as possible, if you are on those versions. See [#2985](https://github.com/sferik/rails_admin/issues/2985) for the detail.
|
|
24
|
-
>
|
|
25
|
-
> Also, 1.0.0 and 1.1.0 is known to have [CSRF vulnerability](https://github.com/sferik/rails_admin/commit/b13e879eb93b661204e9fb5e55f7afa4f397537a), too.
|
|
26
|
-
|
|
27
19
|
## Getting started
|
|
28
20
|
|
|
29
21
|
* Check out [the docs][docs].
|
|
@@ -50,7 +42,7 @@ RailsAdmin is a Rails engine that provides an easy-to-use interface for managing
|
|
|
50
42
|
|
|
51
43
|
## Installation
|
|
52
44
|
|
|
53
|
-
1. On your gemfile: `gem 'rails_admin', '~> 2.0
|
|
45
|
+
1. On your gemfile: `gem 'rails_admin', '~> 2.0'`
|
|
54
46
|
2. Run `bundle install`
|
|
55
47
|
3. Run `rails g rails_admin:install`
|
|
56
48
|
4. Provide a namespace for the routes when asked
|
|
@@ -49,7 +49,7 @@ module RailsAdmin
|
|
|
49
49
|
format.json do
|
|
50
50
|
output = begin
|
|
51
51
|
if params[:compact]
|
|
52
|
-
primary_key_method = @model_config.abstract_model.primary_key
|
|
52
|
+
primary_key_method = @association ? @association.associated_primary_key : @model_config.abstract_model.primary_key
|
|
53
53
|
label_method = @model_config.object_label_method
|
|
54
54
|
@objects.collect { |o| {id: o.send(primary_key_method).to_s, label: o.send(label_method).to_s} }
|
|
55
55
|
else
|
data/lib/rails_admin/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.0
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Erik Michaels-Ober
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2019-08-
|
|
15
|
+
date: 2019-08-18 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: builder
|
|
@@ -609,9 +609,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
609
609
|
version: 2.2.2
|
|
610
610
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
611
611
|
requirements:
|
|
612
|
-
- - "
|
|
612
|
+
- - ">="
|
|
613
613
|
- !ruby/object:Gem::Version
|
|
614
|
-
version: 1.
|
|
614
|
+
version: 1.8.11
|
|
615
615
|
requirements: []
|
|
616
616
|
rubygems_version: 3.0.3
|
|
617
617
|
signing_key:
|