activeadmin 2.12.0 → 3.3.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.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +230 -0
  3. data/CONTRIBUTING.md +4 -12
  4. data/README.md +4 -4
  5. data/app/assets/javascripts/active_admin/base.js +1 -4
  6. data/app/assets/stylesheets/active_admin/_forms.scss +2 -3
  7. data/app/assets/stylesheets/active_admin/components/_comments.scss +1 -1
  8. data/app/assets/stylesheets/active_admin/components/_dropdown_menu.scss +7 -4
  9. data/app/assets/stylesheets/active_admin/components/_pagination.scss +5 -2
  10. data/app/assets/stylesheets/active_admin/components/_table_tools.scss +9 -6
  11. data/app/assets/stylesheets/active_admin/components/_tabs.scss +10 -7
  12. data/app/assets/stylesheets/active_admin/mixins/_buttons.scss +2 -2
  13. data/app/assets/stylesheets/active_admin/pages/_logged_out.scss +1 -1
  14. data/app/assets/stylesheets/active_admin/structure/_footer.scss +6 -1
  15. data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +6 -3
  16. data/app/views/layouts/active_admin_logged_out.html.erb +5 -4
  17. data/config/locales/ar.yml +0 -7
  18. data/config/locales/az.yml +0 -7
  19. data/config/locales/bg.yml +0 -7
  20. data/config/locales/bs.yml +0 -7
  21. data/config/locales/ca.yml +0 -7
  22. data/config/locales/cs.yml +0 -7
  23. data/config/locales/da.yml +0 -7
  24. data/config/locales/de-CH.yml +0 -7
  25. data/config/locales/de.yml +0 -8
  26. data/config/locales/el.yml +0 -7
  27. data/config/locales/en-CA.yml +0 -7
  28. data/config/locales/en-GB.yml +0 -7
  29. data/config/locales/en.yml +0 -8
  30. data/config/locales/eo.yml +0 -8
  31. data/config/locales/es-MX.yml +0 -7
  32. data/config/locales/es.yml +0 -8
  33. data/config/locales/fa.yml +0 -7
  34. data/config/locales/fi.yml +0 -7
  35. data/config/locales/fr.yml +3 -11
  36. data/config/locales/he.yml +0 -9
  37. data/config/locales/hr.yml +0 -7
  38. data/config/locales/hu.yml +0 -8
  39. data/config/locales/id.yml +0 -7
  40. data/config/locales/it.yml +0 -8
  41. data/config/locales/ja.yml +0 -8
  42. data/config/locales/ko.yml +0 -7
  43. data/config/locales/lt.yml +0 -8
  44. data/config/locales/lv.yml +0 -7
  45. data/config/locales/mk.yml +0 -8
  46. data/config/locales/nb.yml +0 -8
  47. data/config/locales/nl.yml +0 -8
  48. data/config/locales/pl.yml +0 -8
  49. data/config/locales/pt-BR.yml +0 -8
  50. data/config/locales/pt-PT.yml +0 -7
  51. data/config/locales/ro.yml +0 -7
  52. data/config/locales/ru.yml +0 -6
  53. data/config/locales/sk.yml +0 -8
  54. data/config/locales/sv-SE.yml +58 -39
  55. data/config/locales/tr.yml +0 -11
  56. data/config/locales/uk.yml +0 -6
  57. data/config/locales/vi.yml +34 -15
  58. data/config/locales/zh-CN.yml +34 -23
  59. data/config/locales/zh-TW.yml +0 -7
  60. data/lib/active_admin/application.rb +4 -4
  61. data/lib/active_admin/asset_registration.rb +3 -3
  62. data/lib/active_admin/authorization_adapter.rb +2 -0
  63. data/lib/active_admin/base_controller/authorization.rb +2 -2
  64. data/lib/active_admin/csv_builder.rb +23 -2
  65. data/lib/active_admin/dependency.rb +0 -4
  66. data/lib/active_admin/engine.rb +5 -1
  67. data/lib/active_admin/filters/active_filter.rb +1 -1
  68. data/lib/active_admin/filters/forms.rb +2 -2
  69. data/lib/active_admin/filters/formtastic_addons.rb +1 -1
  70. data/lib/active_admin/filters/resource_extension.rb +4 -4
  71. data/lib/active_admin/form_builder.rb +5 -6
  72. data/lib/active_admin/inputs/filters/base/search_method_select.rb +2 -2
  73. data/lib/active_admin/inputs/filters/date_range_input.rb +2 -2
  74. data/lib/active_admin/inputs/filters/numeric_input.rb +1 -1
  75. data/lib/active_admin/inputs/filters/select_input.rb +3 -3
  76. data/lib/active_admin/inputs/filters/string_input.rb +1 -1
  77. data/lib/active_admin/menu.rb +1 -0
  78. data/lib/active_admin/namespace.rb +3 -3
  79. data/lib/active_admin/namespace_settings.rb +1 -1
  80. data/lib/active_admin/orm/active_record/comments/comment.rb +8 -0
  81. data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +1 -1
  82. data/lib/active_admin/orm/active_record/comments.rb +8 -8
  83. data/lib/active_admin/pundit_adapter.rb +20 -14
  84. data/lib/active_admin/resource/action_items.rb +2 -2
  85. data/lib/active_admin/resource/attributes.rb +8 -1
  86. data/lib/active_admin/resource/belongs_to.rb +0 -1
  87. data/lib/active_admin/resource_controller/decorators.rb +1 -1
  88. data/lib/active_admin/resource_controller/streaming.rb +1 -1
  89. data/lib/active_admin/version.rb +1 -1
  90. data/lib/active_admin/view_helpers/auto_link_helper.rb +1 -1
  91. data/lib/active_admin/view_helpers/display_helper.rb +10 -3
  92. data/lib/active_admin/views/components/active_admin_form.rb +14 -6
  93. data/lib/active_admin/views/components/paginated_collection.rb +4 -1
  94. data/lib/active_admin/views/index_as_table.rb +8 -7
  95. data/lib/active_admin/views/pages/base.rb +4 -3
  96. data/lib/active_admin/views/pages/index.rb +1 -1
  97. data/lib/active_admin/views/pages/show.rb +1 -7
  98. data/lib/active_admin.rb +5 -3
  99. data/lib/generators/active_admin/install/templates/active_admin.rb.erb +19 -2
  100. data/vendor/assets/javascripts/jquery-ui/data.js +12 -8
  101. data/vendor/assets/javascripts/jquery-ui/disable-selection.js +10 -7
  102. data/vendor/assets/javascripts/jquery-ui/focusable.js +12 -9
  103. data/vendor/assets/javascripts/jquery-ui/form-reset-mixin.js +60 -57
  104. data/vendor/assets/javascripts/jquery-ui/form.js +15 -12
  105. data/vendor/assets/javascripts/jquery-ui/ie.js +5 -2
  106. data/vendor/assets/javascripts/jquery-ui/keycode.js +11 -7
  107. data/vendor/assets/javascripts/jquery-ui/labels.js +46 -40
  108. data/vendor/assets/javascripts/jquery-ui/plugin.js +5 -2
  109. data/vendor/assets/javascripts/jquery-ui/position.js +30 -17
  110. data/vendor/assets/javascripts/jquery-ui/safe-active-element.js +6 -2
  111. data/vendor/assets/javascripts/jquery-ui/safe-blur.js +6 -2
  112. data/vendor/assets/javascripts/jquery-ui/scroll-parent.js +10 -7
  113. data/vendor/assets/javascripts/jquery-ui/tabbable.js +11 -8
  114. data/vendor/assets/javascripts/jquery-ui/unique-id.js +10 -7
  115. data/vendor/assets/javascripts/jquery-ui/version.js +6 -3
  116. data/vendor/assets/javascripts/jquery-ui/widget.js +53 -30
  117. data/vendor/assets/javascripts/jquery-ui/widgets/button.js +87 -24
  118. data/vendor/assets/javascripts/jquery-ui/widgets/checkboxradio.js +276 -273
  119. data/vendor/assets/javascripts/jquery-ui/widgets/controlgroup.js +15 -11
  120. data/vendor/assets/javascripts/jquery-ui/widgets/datepicker.js +182 -62
  121. data/vendor/assets/javascripts/jquery-ui/widgets/dialog.js +53 -36
  122. data/vendor/assets/javascripts/jquery-ui/widgets/draggable.js +28 -19
  123. data/vendor/assets/javascripts/jquery-ui/widgets/mouse.js +22 -11
  124. data/vendor/assets/javascripts/jquery-ui/widgets/resizable.js +47 -26
  125. data/vendor/assets/javascripts/jquery-ui/widgets/sortable.js +186 -125
  126. data/vendor/assets/javascripts/jquery-ui/widgets/tabs.js +20 -20
  127. metadata +34 -79
  128. data/docs/.gitignore +0 -1
  129. data/docs/0-installation.md +0 -142
  130. data/docs/1-general-configuration.md +0 -224
  131. data/docs/10-custom-pages.md +0 -150
  132. data/docs/11-decorators.md +0 -70
  133. data/docs/12-arbre-components.md +0 -214
  134. data/docs/13-authorization-adapter.md +0 -285
  135. data/docs/14-gotchas.md +0 -138
  136. data/docs/2-resource-customization.md +0 -475
  137. data/docs/3-index-pages/custom-index.md +0 -35
  138. data/docs/3-index-pages/index-as-block.md +0 -19
  139. data/docs/3-index-pages/index-as-blog.md +0 -69
  140. data/docs/3-index-pages/index-as-grid.md +0 -27
  141. data/docs/3-index-pages/index-as-table.md +0 -234
  142. data/docs/3-index-pages.md +0 -328
  143. data/docs/4-csv-format.md +0 -74
  144. data/docs/5-forms.md +0 -237
  145. data/docs/6-show-pages.md +0 -93
  146. data/docs/7-sidebars.md +0 -75
  147. data/docs/8-custom-actions.md +0 -177
  148. data/docs/9-batch-actions.md +0 -237
  149. data/docs/CNAME +0 -1
  150. data/docs/Gemfile +0 -4
  151. data/docs/Gemfile.lock +0 -283
  152. data/docs/README.md +0 -24
  153. data/docs/_config.yml +0 -4
  154. data/docs/_includes/footer.html +0 -8
  155. data/docs/_includes/google-analytics.html +0 -16
  156. data/docs/_includes/head.html +0 -7
  157. data/docs/_includes/toc.html +0 -98
  158. data/docs/_includes/top-menu.html +0 -17
  159. data/docs/_layouts/default.html +0 -21
  160. data/docs/documentation.md +0 -60
  161. data/docs/images/activeadmin.png +0 -0
  162. data/docs/images/code-header.png +0 -0
  163. data/docs/images/divider.png +0 -0
  164. data/docs/images/features.png +0 -0
  165. data/docs/images/tidelift.svg +0 -14
  166. data/docs/index.html +0 -226
  167. data/docs/stylesheets/main.css +0 -1205
  168. data/lib/active_admin/deprecation.rb +0 -11
  169. data/lib/ransack_ext.rb +0 -21
  170. data/vendor/assets/javascripts/jquery-ui/escape-selector.js +0 -23
@@ -1,4 +1,3 @@
1
- //= require jquery-ui/escape-selector
2
1
  //= require jquery-ui/keycode
3
2
  //= require jquery-ui/safe-active-element
4
3
  //= require jquery-ui/unique-id
@@ -6,30 +5,31 @@
6
5
  //= require jquery-ui/widget
7
6
 
8
7
  /*!
9
- * jQuery UI Tabs 1.12.1
10
- * http://jqueryui.com
8
+ * jQuery UI Tabs 1.13.3
9
+ * https://jqueryui.com
11
10
  *
12
- * Copyright jQuery Foundation and other contributors
11
+ * Copyright OpenJS Foundation and other contributors
13
12
  * Released under the MIT license.
14
- * http://jquery.org/license
13
+ * https://jquery.org/license
15
14
  */
16
15
 
17
16
  //>>label: Tabs
18
17
  //>>group: Widgets
19
18
  //>>description: Transforms a set of container elements into a tab structure.
20
- //>>docs: http://api.jqueryui.com/tabs/
21
- //>>demos: http://jqueryui.com/tabs/
19
+ //>>docs: https://api.jqueryui.com/tabs/
20
+ //>>demos: https://jqueryui.com/tabs/
22
21
  //>>css.structure: ../../themes/base/core.css
23
22
  //>>css.structure: ../../themes/base/tabs.css
24
23
  //>>css.theme: ../../themes/base/theme.css
25
24
 
26
25
  ( function( factory ) {
26
+ "use strict";
27
+
27
28
  if ( typeof define === "function" && define.amd ) {
28
29
 
29
30
  // AMD. Register as an anonymous module.
30
31
  define( [
31
32
  "jquery",
32
- "../escape-selector",
33
33
  "../keycode",
34
34
  "../safe-active-element",
35
35
  "../unique-id",
@@ -41,10 +41,11 @@
41
41
  // Browser globals
42
42
  factory( jQuery );
43
43
  }
44
- }( function( $ ) {
44
+ } )( function( $ ) {
45
+ "use strict";
45
46
 
46
47
  $.widget( "ui.tabs", {
47
- version: "1.12.1",
48
+ version: "1.13.3",
48
49
  delay: 300,
49
50
  options: {
50
51
  active: null,
@@ -102,8 +103,8 @@ $.widget( "ui.tabs", {
102
103
 
103
104
  // Take disabling tabs via class attribute from HTML
104
105
  // into account and update option properly.
105
- if ( $.isArray( options.disabled ) ) {
106
- options.disabled = $.unique( options.disabled.concat(
106
+ if ( Array.isArray( options.disabled ) ) {
107
+ options.disabled = $.uniqueSort( options.disabled.concat(
107
108
  $.map( this.tabs.filter( ".ui-state-disabled" ), function( li ) {
108
109
  return that.tabs.index( li );
109
110
  } )
@@ -438,7 +439,6 @@ $.widget( "ui.tabs", {
438
439
  return $( "a", this )[ 0 ];
439
440
  } )
440
441
  .attr( {
441
- role: "presentation",
442
442
  tabIndex: -1
443
443
  } );
444
444
  this._addClass( this.anchors, "ui-tabs-anchor" );
@@ -510,7 +510,7 @@ $.widget( "ui.tabs", {
510
510
  _setOptionDisabled: function( disabled ) {
511
511
  var currentItem, li, i;
512
512
 
513
- if ( $.isArray( disabled ) ) {
513
+ if ( Array.isArray( disabled ) ) {
514
514
  if ( !disabled.length ) {
515
515
  disabled = false;
516
516
  } else if ( disabled.length === this.anchors.length ) {
@@ -741,7 +741,7 @@ $.widget( "ui.tabs", {
741
741
  // meta-function to give users option to provide a href string instead of a numerical index.
742
742
  if ( typeof index === "string" ) {
743
743
  index = this.anchors.index( this.anchors.filter( "[href$='" +
744
- $.ui.escapeSelector( index ) + "']" ) );
744
+ $.escapeSelector( index ) + "']" ) );
745
745
  }
746
746
 
747
747
  return index;
@@ -798,7 +798,7 @@ $.widget( "ui.tabs", {
798
798
  disabled = false;
799
799
  } else {
800
800
  index = this._getIndex( index );
801
- if ( $.isArray( disabled ) ) {
801
+ if ( Array.isArray( disabled ) ) {
802
802
  disabled = $.map( disabled, function( num ) {
803
803
  return num !== index ? num : null;
804
804
  } );
@@ -824,7 +824,7 @@ $.widget( "ui.tabs", {
824
824
  if ( $.inArray( index, disabled ) !== -1 ) {
825
825
  return;
826
826
  }
827
- if ( $.isArray( disabled ) ) {
827
+ if ( Array.isArray( disabled ) ) {
828
828
  disabled = $.merge( [ index ], disabled ).sort();
829
829
  } else {
830
830
  disabled = [ index ];
@@ -874,7 +874,7 @@ $.widget( "ui.tabs", {
874
874
  .done( function( response, status, jqXHR ) {
875
875
 
876
876
  // support: jQuery <1.8
877
- // http://bugs.jquery.com/ticket/11778
877
+ // https://bugs.jquery.com/ticket/11778
878
878
  setTimeout( function() {
879
879
  panel.html( response );
880
880
  that._trigger( "load", event, eventData );
@@ -885,7 +885,7 @@ $.widget( "ui.tabs", {
885
885
  .fail( function( jqXHR, status ) {
886
886
 
887
887
  // support: jQuery <1.8
888
- // http://bugs.jquery.com/ticket/11778
888
+ // https://bugs.jquery.com/ticket/11778
889
889
  setTimeout( function() {
890
890
  complete( jqXHR, status );
891
891
  }, 1 );
@@ -928,4 +928,4 @@ if ( $.uiBackCompat !== false ) {
928
928
 
929
929
  return $.ui.tabs;
930
930
 
931
- } ) );
931
+ } );
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Maresh
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2022-04-22 00:00:00.000000000 Z
18
+ date: 2025-03-08 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: arbre
@@ -37,6 +37,20 @@ dependencies:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: 1.2.1
40
+ - !ruby/object:Gem::Dependency
41
+ name: csv
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
40
54
  - !ruby/object:Gem::Dependency
41
55
  name: formtastic
42
56
  requirement: !ruby/object:Gem::Requirement
@@ -44,9 +58,6 @@ dependencies:
44
58
  - - ">="
45
59
  - !ruby/object:Gem::Version
46
60
  version: '3.1'
47
- - - "<"
48
- - !ruby/object:Gem::Version
49
- version: '5.0'
50
61
  type: :runtime
51
62
  prerelease: false
52
63
  version_requirements: !ruby/object:Gem::Requirement
@@ -54,21 +65,18 @@ dependencies:
54
65
  - - ">="
55
66
  - !ruby/object:Gem::Version
56
67
  version: '3.1'
57
- - - "<"
58
- - !ruby/object:Gem::Version
59
- version: '5.0'
60
68
  - !ruby/object:Gem::Dependency
61
69
  name: formtastic_i18n
62
70
  requirement: !ruby/object:Gem::Requirement
63
71
  requirements:
64
- - - "~>"
72
+ - - ">="
65
73
  - !ruby/object:Gem::Version
66
74
  version: '0.4'
67
75
  type: :runtime
68
76
  prerelease: false
69
77
  version_requirements: !ruby/object:Gem::Requirement
70
78
  requirements:
71
- - - "~>"
79
+ - - ">="
72
80
  - !ruby/object:Gem::Version
73
81
  version: '0.4'
74
82
  - !ruby/object:Gem::Dependency
@@ -89,23 +97,20 @@ dependencies:
89
97
  name: jquery-rails
90
98
  requirement: !ruby/object:Gem::Requirement
91
99
  requirements:
92
- - - "~>"
100
+ - - ">="
93
101
  - !ruby/object:Gem::Version
94
102
  version: '4.2'
95
103
  type: :runtime
96
104
  prerelease: false
97
105
  version_requirements: !ruby/object:Gem::Requirement
98
106
  requirements:
99
- - - "~>"
107
+ - - ">="
100
108
  - !ruby/object:Gem::Version
101
109
  version: '4.2'
102
110
  - !ruby/object:Gem::Dependency
103
111
  name: kaminari
104
112
  requirement: !ruby/object:Gem::Requirement
105
113
  requirements:
106
- - - "~>"
107
- - !ruby/object:Gem::Version
108
- version: '1.0'
109
114
  - - ">="
110
115
  - !ruby/object:Gem::Version
111
116
  version: 1.2.1
@@ -113,9 +118,6 @@ dependencies:
113
118
  prerelease: false
114
119
  version_requirements: !ruby/object:Gem::Requirement
115
120
  requirements:
116
- - - "~>"
117
- - !ruby/object:Gem::Version
118
- version: '1.0'
119
121
  - - ">="
120
122
  - !ruby/object:Gem::Version
121
123
  version: 1.2.1
@@ -125,40 +127,28 @@ dependencies:
125
127
  requirements:
126
128
  - - ">="
127
129
  - !ruby/object:Gem::Version
128
- version: '6.0'
129
- - - "<"
130
- - !ruby/object:Gem::Version
131
- version: '7.1'
130
+ version: '6.1'
132
131
  type: :runtime
133
132
  prerelease: false
134
133
  version_requirements: !ruby/object:Gem::Requirement
135
134
  requirements:
136
135
  - - ">="
137
136
  - !ruby/object:Gem::Version
138
- version: '6.0'
139
- - - "<"
140
- - !ruby/object:Gem::Version
141
- version: '7.1'
137
+ version: '6.1'
142
138
  - !ruby/object:Gem::Dependency
143
139
  name: ransack
144
140
  requirement: !ruby/object:Gem::Requirement
145
141
  requirements:
146
142
  - - ">="
147
143
  - !ruby/object:Gem::Version
148
- version: 2.1.1
149
- - - "<"
150
- - !ruby/object:Gem::Version
151
- version: '4'
144
+ version: '4.0'
152
145
  type: :runtime
153
146
  prerelease: false
154
147
  version_requirements: !ruby/object:Gem::Requirement
155
148
  requirements:
156
149
  - - ">="
157
150
  - !ruby/object:Gem::Version
158
- version: 2.1.1
159
- - - "<"
160
- - !ruby/object:Gem::Version
161
- version: '4'
151
+ version: '4.0'
162
152
  description: The administration framework for Ruby on Rails.
163
153
  email:
164
154
  - deivid.rodriguez@riseup.net
@@ -309,46 +299,6 @@ files:
309
299
  - config/locales/vi.yml
310
300
  - config/locales/zh-CN.yml
311
301
  - config/locales/zh-TW.yml
312
- - docs/.gitignore
313
- - docs/0-installation.md
314
- - docs/1-general-configuration.md
315
- - docs/10-custom-pages.md
316
- - docs/11-decorators.md
317
- - docs/12-arbre-components.md
318
- - docs/13-authorization-adapter.md
319
- - docs/14-gotchas.md
320
- - docs/2-resource-customization.md
321
- - docs/3-index-pages.md
322
- - docs/3-index-pages/custom-index.md
323
- - docs/3-index-pages/index-as-block.md
324
- - docs/3-index-pages/index-as-blog.md
325
- - docs/3-index-pages/index-as-grid.md
326
- - docs/3-index-pages/index-as-table.md
327
- - docs/4-csv-format.md
328
- - docs/5-forms.md
329
- - docs/6-show-pages.md
330
- - docs/7-sidebars.md
331
- - docs/8-custom-actions.md
332
- - docs/9-batch-actions.md
333
- - docs/CNAME
334
- - docs/Gemfile
335
- - docs/Gemfile.lock
336
- - docs/README.md
337
- - docs/_config.yml
338
- - docs/_includes/footer.html
339
- - docs/_includes/google-analytics.html
340
- - docs/_includes/head.html
341
- - docs/_includes/toc.html
342
- - docs/_includes/top-menu.html
343
- - docs/_layouts/default.html
344
- - docs/documentation.md
345
- - docs/images/activeadmin.png
346
- - docs/images/code-header.png
347
- - docs/images/divider.png
348
- - docs/images/features.png
349
- - docs/images/tidelift.svg
350
- - docs/index.html
351
- - docs/stylesheets/main.css
352
302
  - lib/active_admin.rb
353
303
  - lib/active_admin/abstract_view_factory.rb
354
304
  - lib/active_admin/application.rb
@@ -371,7 +321,6 @@ files:
371
321
  - lib/active_admin/controller_action.rb
372
322
  - lib/active_admin/csv_builder.rb
373
323
  - lib/active_admin/dependency.rb
374
- - lib/active_admin/deprecation.rb
375
324
  - lib/active_admin/devise.rb
376
325
  - lib/active_admin/dsl.rb
377
326
  - lib/active_admin/dynamic_setting.rb
@@ -530,10 +479,8 @@ files:
530
479
  - lib/generators/active_admin/webpacker/templates/active_admin.scss
531
480
  - lib/generators/active_admin/webpacker/templates/print.scss
532
481
  - lib/generators/active_admin/webpacker/webpacker_generator.rb
533
- - lib/ransack_ext.rb
534
482
  - vendor/assets/javascripts/jquery-ui/data.js
535
483
  - vendor/assets/javascripts/jquery-ui/disable-selection.js
536
- - vendor/assets/javascripts/jquery-ui/escape-selector.js
537
484
  - vendor/assets/javascripts/jquery-ui/focusable.js
538
485
  - vendor/assets/javascripts/jquery-ui/form-reset-mixin.js
539
486
  - vendor/assets/javascripts/jquery-ui/form.js
@@ -562,7 +509,15 @@ files:
562
509
  homepage: https://activeadmin.info
563
510
  licenses:
564
511
  - MIT
565
- metadata: {}
512
+ metadata:
513
+ bug_tracker_uri: https://github.com/activeadmin/activeadmin/issues
514
+ changelog_uri: https://github.com/activeadmin/activeadmin/blob/master/CHANGELOG.md
515
+ documentation_uri: https://activeadmin.info
516
+ homepage_uri: https://activeadmin.info
517
+ mailing_list_uri: https://groups.google.com/group/activeadmin
518
+ rubygems_mfa_required: 'true'
519
+ source_code_uri: https://github.com/activeadmin/activeadmin
520
+ wiki_uri: https://github.com/activeadmin/activeadmin/wiki
566
521
  post_install_message:
567
522
  rdoc_options: []
568
523
  require_paths:
@@ -578,7 +533,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
578
533
  - !ruby/object:Gem::Version
579
534
  version: '0'
580
535
  requirements: []
581
- rubygems_version: 3.3.10
536
+ rubygems_version: 3.5.22
582
537
  signing_key:
583
538
  specification_version: 4
584
539
  summary: Active Admin is a Ruby on Rails plugin for generating administration style
data/docs/.gitignore DELETED
@@ -1 +0,0 @@
1
- _site/
@@ -1,142 +0,0 @@
1
- ---
2
- redirect_from: /docs/0-installation.html
3
- ---
4
-
5
- # Installation
6
-
7
- Active Admin is a Ruby Gem.
8
-
9
- ```ruby
10
- gem 'activeadmin'
11
-
12
- # Plus integrations with:
13
- gem 'devise'
14
- gem 'cancancan'
15
- gem 'draper'
16
- gem 'pundit'
17
- ```
18
-
19
- More accurately, it's a [Rails Engine](http://guides.rubyonrails.org/engines.html)
20
- that can be injected into your existing Ruby on Rails application.
21
-
22
- ## Setting up Active Admin
23
-
24
- After installing the gem, you need to run the generator. Here are your options:
25
-
26
- * If you don't want to use Devise, run it with `--skip-users`:
27
-
28
- ```sh
29
- rails g active_admin:install --skip-users
30
- ```
31
-
32
- * If you want to customize the name of the generated user class, or if you want to use an existing user class, provide the class name as an argument:
33
-
34
- ```sh
35
- rails g active_admin:install User
36
- ```
37
-
38
- * Otherwise, with no arguments we will create an `AdminUser` class to use with Devise:
39
-
40
- ```sh
41
- rails g active_admin:install
42
- ```
43
-
44
- The generator adds these core files, among others:
45
-
46
- * `app/admin/dashboard.rb`
47
- * `app/assets/javascripts/active_admin.js`
48
- * `app/assets/stylesheets/active_admin.scss`
49
- * `config/initializers/active_admin.rb`
50
-
51
- Now, migrate and seed your database before starting the server:
52
-
53
- ```sh
54
- rails db:migrate
55
- rails db:seed
56
- rails server
57
- ```
58
-
59
- Visit `http://localhost:3000/admin` and log in as the default user:
60
-
61
- * __User__: admin@example.com
62
- * __Password__: password
63
-
64
- Voila! You're on your brand new Active Admin dashboard.
65
-
66
- To register an existing model with Active Admin:
67
-
68
- ```sh
69
- rails generate active_admin:resource MyModel
70
- ```
71
-
72
- This creates a file at `app/admin/my_model.rb` to set up the UI; refresh your
73
- browser to see it.
74
-
75
- # Upgrading
76
-
77
- When upgrading to a new version, it's a good idea to check the [CHANGELOG].
78
-
79
- To update the JS & CSS assets:
80
-
81
- ```sh
82
- rails generate active_admin:assets
83
- ```
84
-
85
- You should also sync these files with their counterparts in the AA source code:
86
-
87
- * app/admin/dashboard.rb [~>][dashboard.rb]
88
- * config/initializers/active_admin.rb [~>][active_admin.rb]
89
-
90
- # Gem compatibility
91
-
92
- ## will_paginate
93
-
94
- If you use `will_paginate` in your app, you need to configure an initializer for
95
- Kaminari to avoid conflicts.
96
-
97
- ```ruby
98
- # config/initializers/kaminari.rb
99
- Kaminari.configure do |config|
100
- config.page_method_name = :per_page_kaminari
101
- end
102
- ```
103
-
104
- If you are also using [Draper](https://github.com/drapergem/draper), you may
105
- want to make sure `per_page_kaminari` is delegated correctly:
106
-
107
- ```ruby
108
- Draper::CollectionDecorator.send :delegate, :per_page_kaminari
109
- ```
110
-
111
- ## simple_form
112
-
113
- If you're getting the error `wrong number of arguments (6 for 4..5)`, [read #2703].
114
-
115
- ## webpacker
116
-
117
- You can **opt-in to using Webpacker for ActiveAdmin assets** as well by updating your configuration to turn on the `use_webpacker` option, either at installation time or manually.
118
-
119
- * at active_admin installation:
120
-
121
- ```sh
122
- rails g active_admin:install --use_webpacker
123
- ```
124
-
125
- * manually:
126
-
127
- ```ruby
128
- ActiveAdmin.setup do |config|
129
- config.use_webpacker = true
130
- end
131
- ```
132
-
133
- And run the generator to get default Active Admin assets:
134
-
135
- ```sh
136
- rails g active_admin:webpacker
137
- ```
138
-
139
- [CHANGELOG]: https://github.com/activeadmin/activeadmin/blob/master/CHANGELOG.md
140
- [dashboard.rb]: https://github.com/activeadmin/activeadmin/blob/master/lib/generators/active_admin/install/templates/dashboard.rb
141
- [active_admin.rb]: https://github.com/activeadmin/activeadmin/blob/master/lib/generators/active_admin/install/templates/active_admin.rb.erb
142
- [read #2703]: https://github.com/activeadmin/activeadmin/issues/2703#issuecomment-38140864