activeadmin 2.9.0 → 2.14.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activeadmin might be problematic. Click here for more details.

Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +230 -1
  3. data/CONTRIBUTING.md +4 -5
  4. data/README.md +2 -2
  5. data/app/assets/javascripts/active_admin/base.js +13 -9
  6. data/app/assets/stylesheets/active_admin/_base.scss +53 -37
  7. data/app/assets/stylesheets/active_admin/_forms.scss +1 -11
  8. data/app/assets/stylesheets/active_admin/_normalize.scss +25 -123
  9. data/app/assets/stylesheets/active_admin/components/_date_picker.scss +1 -2
  10. data/app/assets/stylesheets/active_admin/components/_dropdown_menu.scss +0 -1
  11. data/app/assets/stylesheets/active_admin/mixins/_variables.scss +9 -0
  12. data/app/assets/stylesheets/active_admin/structure/_footer.scss +6 -1
  13. data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +0 -1
  14. data/app/javascript/active_admin/initializers/has-many.js +4 -1
  15. data/app/views/active_admin/devise/shared/_links.erb +1 -1
  16. data/app/views/active_admin/page/index.html.arb +1 -0
  17. data/app/views/active_admin/resource/edit.html.arb +1 -0
  18. data/app/views/active_admin/resource/index.html.arb +1 -0
  19. data/app/views/active_admin/resource/new.html.arb +1 -0
  20. data/app/views/active_admin/resource/show.html.arb +1 -0
  21. data/app/views/layouts/active_admin.html.arb +1 -0
  22. data/app/views/layouts/active_admin_logged_out.html.erb +5 -4
  23. data/config/locales/fr.yml +3 -3
  24. data/config/locales/ko.yml +1 -1
  25. data/config/locales/nl.yml +1 -1
  26. data/config/locales/ro.yml +3 -2
  27. data/config/locales/vi.yml +34 -7
  28. data/config/locales/zh-CN.yml +36 -17
  29. data/lib/active_admin/abstract_view_factory.rb +1 -0
  30. data/lib/active_admin/application.rb +10 -10
  31. data/lib/active_admin/application_settings.rb +1 -0
  32. data/lib/active_admin/asset_registration.rb +4 -3
  33. data/lib/active_admin/authorization_adapter.rb +3 -0
  34. data/lib/active_admin/base_controller/authorization.rb +4 -3
  35. data/lib/active_admin/base_controller/menu.rb +1 -0
  36. data/lib/active_admin/base_controller.rb +2 -1
  37. data/lib/active_admin/batch_actions/controller.rb +1 -0
  38. data/lib/active_admin/batch_actions/resource_extension.rb +1 -0
  39. data/lib/active_admin/batch_actions/views/batch_action_form.rb +1 -0
  40. data/lib/active_admin/batch_actions/views/batch_action_selector.rb +1 -0
  41. data/lib/active_admin/batch_actions/views/selection_cells.rb +1 -0
  42. data/lib/active_admin/batch_actions.rb +1 -0
  43. data/lib/active_admin/callbacks.rb +1 -0
  44. data/lib/active_admin/cancan_adapter.rb +1 -0
  45. data/lib/active_admin/collection_decorator.rb +1 -0
  46. data/lib/active_admin/component.rb +1 -0
  47. data/lib/active_admin/controller_action.rb +1 -0
  48. data/lib/active_admin/csv_builder.rb +5 -18
  49. data/lib/active_admin/dependency.rb +1 -4
  50. data/lib/active_admin/deprecation.rb +1 -0
  51. data/lib/active_admin/devise.rb +11 -0
  52. data/lib/active_admin/dsl.rb +1 -0
  53. data/lib/active_admin/dynamic_setting.rb +1 -0
  54. data/lib/active_admin/dynamic_settings_node.rb +1 -0
  55. data/lib/active_admin/engine.rb +4 -2
  56. data/lib/active_admin/error.rb +1 -0
  57. data/lib/active_admin/filters/active.rb +1 -0
  58. data/lib/active_admin/filters/active_filter.rb +1 -0
  59. data/lib/active_admin/filters/active_sidebar.rb +2 -28
  60. data/lib/active_admin/filters/dsl.rb +1 -0
  61. data/lib/active_admin/filters/forms.rb +1 -0
  62. data/lib/active_admin/filters/formtastic_addons.rb +1 -0
  63. data/lib/active_admin/filters/resource_extension.rb +5 -4
  64. data/lib/active_admin/filters.rb +1 -0
  65. data/lib/active_admin/form_builder.rb +1 -0
  66. data/lib/active_admin/generators/boilerplate.rb +1 -0
  67. data/lib/active_admin/helpers/collection.rb +2 -0
  68. data/lib/active_admin/helpers/i18n.rb +1 -0
  69. data/lib/active_admin/helpers/optional_display.rb +1 -0
  70. data/lib/active_admin/helpers/routes/url_helpers.rb +1 -0
  71. data/lib/active_admin/helpers/scope_chain.rb +1 -0
  72. data/lib/active_admin/inputs/datepicker_input.rb +1 -0
  73. data/lib/active_admin/inputs/filters/base/search_method_select.rb +1 -0
  74. data/lib/active_admin/inputs/filters/base.rb +1 -0
  75. data/lib/active_admin/inputs/filters/boolean_input.rb +1 -0
  76. data/lib/active_admin/inputs/filters/check_boxes_input.rb +1 -0
  77. data/lib/active_admin/inputs/filters/date_picker_input.rb +1 -0
  78. data/lib/active_admin/inputs/filters/date_range_input.rb +1 -0
  79. data/lib/active_admin/inputs/filters/numeric_input.rb +1 -0
  80. data/lib/active_admin/inputs/filters/select_input.rb +1 -0
  81. data/lib/active_admin/inputs/filters/string_input.rb +1 -0
  82. data/lib/active_admin/inputs/filters/text_input.rb +1 -0
  83. data/lib/active_admin/inputs.rb +1 -0
  84. data/lib/active_admin/localizers/resource_localizer.rb +1 -0
  85. data/lib/active_admin/localizers.rb +1 -0
  86. data/lib/active_admin/menu.rb +1 -0
  87. data/lib/active_admin/menu_collection.rb +1 -0
  88. data/lib/active_admin/menu_item.rb +1 -0
  89. data/lib/active_admin/namespace.rb +3 -2
  90. data/lib/active_admin/namespace_settings.rb +1 -0
  91. data/lib/active_admin/order_clause.rb +1 -0
  92. data/lib/active_admin/orm/active_record/comments/comment.rb +1 -0
  93. data/lib/active_admin/orm/active_record/comments/namespace_helper.rb +1 -0
  94. data/lib/active_admin/orm/active_record/comments/resource_helper.rb +1 -0
  95. data/lib/active_admin/orm/active_record/comments/show_page_helper.rb +1 -0
  96. data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +2 -1
  97. data/lib/active_admin/orm/active_record/comments/views.rb +1 -0
  98. data/lib/active_admin/orm/active_record/comments.rb +9 -8
  99. data/lib/active_admin/orm/active_record.rb +1 -0
  100. data/lib/active_admin/orm/mongoid.rb +1 -0
  101. data/lib/active_admin/page.rb +1 -0
  102. data/lib/active_admin/page_controller.rb +1 -0
  103. data/lib/active_admin/page_dsl.rb +1 -0
  104. data/lib/active_admin/page_presenter.rb +1 -0
  105. data/lib/active_admin/pundit_adapter.rb +55 -13
  106. data/lib/active_admin/resource/action_items.rb +3 -2
  107. data/lib/active_admin/resource/attributes.rb +1 -0
  108. data/lib/active_admin/resource/belongs_to.rb +1 -0
  109. data/lib/active_admin/resource/controllers.rb +1 -0
  110. data/lib/active_admin/resource/includes.rb +1 -0
  111. data/lib/active_admin/resource/menu.rb +1 -0
  112. data/lib/active_admin/resource/model.rb +1 -0
  113. data/lib/active_admin/resource/naming.rb +1 -0
  114. data/lib/active_admin/resource/ordering.rb +1 -0
  115. data/lib/active_admin/resource/page_presenters.rb +1 -0
  116. data/lib/active_admin/resource/pagination.rb +1 -0
  117. data/lib/active_admin/resource/routes.rb +1 -0
  118. data/lib/active_admin/resource/scope_to.rb +1 -0
  119. data/lib/active_admin/resource/scopes.rb +1 -0
  120. data/lib/active_admin/resource/sidebars.rb +1 -0
  121. data/lib/active_admin/resource.rb +3 -2
  122. data/lib/active_admin/resource_collection.rb +1 -0
  123. data/lib/active_admin/resource_controller/action_builder.rb +1 -0
  124. data/lib/active_admin/resource_controller/data_access.rb +30 -4
  125. data/lib/active_admin/resource_controller/decorators.rb +1 -0
  126. data/lib/active_admin/resource_controller/polymorphic_routes.rb +1 -0
  127. data/lib/active_admin/resource_controller/resource_class_methods.rb +1 -0
  128. data/lib/active_admin/resource_controller/scoping.rb +1 -0
  129. data/lib/active_admin/resource_controller/sidebars.rb +1 -0
  130. data/lib/active_admin/resource_controller/streaming.rb +3 -2
  131. data/lib/active_admin/resource_controller.rb +1 -0
  132. data/lib/active_admin/resource_dsl.rb +7 -21
  133. data/lib/active_admin/router.rb +1 -0
  134. data/lib/active_admin/scope.rb +1 -0
  135. data/lib/active_admin/settings_node.rb +1 -0
  136. data/lib/active_admin/sidebar_section.rb +1 -0
  137. data/lib/active_admin/version.rb +2 -1
  138. data/lib/active_admin/view_factory.rb +1 -0
  139. data/lib/active_admin/view_helpers/active_admin_application_helper.rb +1 -0
  140. data/lib/active_admin/view_helpers/auto_link_helper.rb +2 -1
  141. data/lib/active_admin/view_helpers/breadcrumb_helper.rb +1 -0
  142. data/lib/active_admin/view_helpers/display_helper.rb +11 -3
  143. data/lib/active_admin/view_helpers/download_format_links_helper.rb +1 -0
  144. data/lib/active_admin/view_helpers/fields_for.rb +1 -0
  145. data/lib/active_admin/view_helpers/flash_helper.rb +1 -0
  146. data/lib/active_admin/view_helpers/form_helper.rb +1 -0
  147. data/lib/active_admin/view_helpers/method_or_proc_helper.rb +1 -0
  148. data/lib/active_admin/view_helpers/scope_name_helper.rb +1 -0
  149. data/lib/active_admin/view_helpers/sidebar_helper.rb +1 -0
  150. data/lib/active_admin/view_helpers/title_helper.rb +1 -0
  151. data/lib/active_admin/view_helpers/view_factory_helper.rb +1 -0
  152. data/lib/active_admin/view_helpers.rb +1 -0
  153. data/lib/active_admin/views/action_items.rb +1 -0
  154. data/lib/active_admin/views/components/active_admin_form.rb +2 -1
  155. data/lib/active_admin/views/components/active_filters_sidebar_content.rb +59 -0
  156. data/lib/active_admin/views/components/attributes_table.rb +1 -0
  157. data/lib/active_admin/views/components/blank_slate.rb +1 -0
  158. data/lib/active_admin/views/components/columns.rb +1 -0
  159. data/lib/active_admin/views/components/dropdown_menu.rb +3 -5
  160. data/lib/active_admin/views/components/index_list.rb +1 -0
  161. data/lib/active_admin/views/components/menu.rb +1 -0
  162. data/lib/active_admin/views/components/menu_item.rb +1 -0
  163. data/lib/active_admin/views/components/paginated_collection.rb +1 -0
  164. data/lib/active_admin/views/components/panel.rb +1 -0
  165. data/lib/active_admin/views/components/scopes.rb +1 -0
  166. data/lib/active_admin/views/components/sidebar.rb +1 -0
  167. data/lib/active_admin/views/components/sidebar_section.rb +1 -0
  168. data/lib/active_admin/views/components/site_title.rb +1 -0
  169. data/lib/active_admin/views/components/status_tag.rb +1 -0
  170. data/lib/active_admin/views/components/table_for.rb +1 -0
  171. data/lib/active_admin/views/components/tabs.rb +1 -0
  172. data/lib/active_admin/views/components/unsupported_browser.rb +1 -0
  173. data/lib/active_admin/views/footer.rb +1 -0
  174. data/lib/active_admin/views/header.rb +1 -0
  175. data/lib/active_admin/views/index_as_block.rb +1 -0
  176. data/lib/active_admin/views/index_as_blog.rb +1 -0
  177. data/lib/active_admin/views/index_as_grid.rb +1 -0
  178. data/lib/active_admin/views/index_as_table.rb +2 -1
  179. data/lib/active_admin/views/pages/base.rb +8 -4
  180. data/lib/active_admin/views/pages/form.rb +1 -0
  181. data/lib/active_admin/views/pages/index.rb +2 -1
  182. data/lib/active_admin/views/pages/layout.rb +1 -0
  183. data/lib/active_admin/views/pages/page.rb +1 -0
  184. data/lib/active_admin/views/pages/show.rb +1 -0
  185. data/lib/active_admin/views/tabbed_navigation.rb +1 -0
  186. data/lib/active_admin/views/title_bar.rb +1 -0
  187. data/lib/active_admin/views.rb +1 -0
  188. data/lib/active_admin.rb +2 -1
  189. data/lib/activeadmin.rb +1 -0
  190. data/lib/generators/active_admin/assets/assets_generator.rb +1 -0
  191. data/lib/generators/active_admin/devise/devise_generator.rb +1 -0
  192. data/lib/generators/active_admin/install/install_generator.rb +1 -0
  193. data/lib/generators/active_admin/install/templates/active_admin.rb.erb +17 -0
  194. data/lib/generators/active_admin/install/templates/dashboard.rb +1 -0
  195. data/lib/generators/active_admin/page/page_generator.rb +1 -0
  196. data/lib/generators/active_admin/page/templates/page.rb +1 -0
  197. data/lib/generators/active_admin/resource/resource_generator.rb +1 -0
  198. data/lib/generators/active_admin/webpacker/webpacker_generator.rb +1 -0
  199. data/lib/ransack_ext.rb +1 -0
  200. metadata +21 -59
  201. data/docs/.gitignore +0 -1
  202. data/docs/0-installation.md +0 -142
  203. data/docs/1-general-configuration.md +0 -224
  204. data/docs/10-custom-pages.md +0 -150
  205. data/docs/11-decorators.md +0 -70
  206. data/docs/12-arbre-components.md +0 -214
  207. data/docs/13-authorization-adapter.md +0 -285
  208. data/docs/14-gotchas.md +0 -138
  209. data/docs/2-resource-customization.md +0 -475
  210. data/docs/3-index-pages/custom-index.md +0 -35
  211. data/docs/3-index-pages/index-as-block.md +0 -19
  212. data/docs/3-index-pages/index-as-blog.md +0 -69
  213. data/docs/3-index-pages/index-as-grid.md +0 -27
  214. data/docs/3-index-pages/index-as-table.md +0 -234
  215. data/docs/3-index-pages.md +0 -328
  216. data/docs/4-csv-format.md +0 -74
  217. data/docs/5-forms.md +0 -237
  218. data/docs/6-show-pages.md +0 -93
  219. data/docs/7-sidebars.md +0 -75
  220. data/docs/8-custom-actions.md +0 -177
  221. data/docs/9-batch-actions.md +0 -237
  222. data/docs/CNAME +0 -1
  223. data/docs/Gemfile +0 -3
  224. data/docs/Gemfile.lock +0 -259
  225. data/docs/README.md +0 -24
  226. data/docs/_config.yml +0 -4
  227. data/docs/_includes/footer.html +0 -8
  228. data/docs/_includes/google-analytics.html +0 -16
  229. data/docs/_includes/head.html +0 -7
  230. data/docs/_includes/toc.html +0 -98
  231. data/docs/_includes/top-menu.html +0 -17
  232. data/docs/_layouts/default.html +0 -21
  233. data/docs/documentation.md +0 -60
  234. data/docs/images/activeadmin.png +0 -0
  235. data/docs/images/code-header.png +0 -0
  236. data/docs/images/divider.png +0 -0
  237. data/docs/images/features.png +0 -0
  238. data/docs/images/tidelift.svg +0 -14
  239. data/docs/index.html +0 -226
  240. data/docs/stylesheets/main.css +0 -1205
  241. /data/app/assets/stylesheets/active_admin/{print.scss → _print.scss} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a79fadc45ea60de060d130d9ce18ca04b0becd14baae2e46b3749b76cb7bd20
4
- data.tar.gz: 59ecfb3dba085bd66b2534991dcba8e14dae2f76a07baae37f8b8daaa4063917
3
+ metadata.gz: e192ee32c6a28d748f4fe6a3c82aba50933295ca915ccb3b5d4f283749dd8ae4
4
+ data.tar.gz: b3440f204e78159fbff127db9085c81d921a23aacc11828dc1a95c54e1291096
5
5
  SHA512:
6
- metadata.gz: 2d26b7fb0ffbd1da98ca7b4f685a7c386dcab3f25079f5e16e7926cb1c9ce2060db7ecc27d158608091a178590c9604b33850d5f44009401bee467c6f84811a0
7
- data.tar.gz: 1273181e98620f7af30434e4fb669d95eddfa7633d3e5fb5b51fbb31bf8d8b7615e07c413590cba13b86b5fc1e087dc589f7f4f227c6ff62c4ea25925faf07f8
6
+ metadata.gz: b757b6e53f0385ac472b370b92e9cfff96ad10a04551322c27d3fde495b4f5a8f43d6c54ff19d6d32ca7d39db631759c3d8a76a491ad27d7ba38490ecdbce7ab
7
+ data.tar.gz: 03a6f3c614b350d6fafc130c1aebf31f0ba854ef06304bac52800cce61ce7dc26a674f07f2ead5032e89740e9f7e016bb1619f91e1e08e944f923ce5c76301c2
data/CHANGELOG.md CHANGED
@@ -2,6 +2,150 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.14.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.13.1..v2.14.0)
6
+
7
+ ### Enhancements
8
+
9
+ * Add csp_meta_tag to layout. [#7986] by [@javierjulio]
10
+ * Update config.register_javascript with options support. [#7002] by [@lanzhiheng]
11
+ * Use `csrf_meta_tags` in place of singular version. [#7985] by [@javierjulio]
12
+ * Allow different new and edit rules in authorization adapters. [#6535] by [@timwis]
13
+
14
+ ### Bug Fixes
15
+
16
+ * Fix form layout for hints and checkboxes. [#7772] by [@JewelSam]
17
+ * Update filters disabled error to include specific action. [#6195] by [@javawizard]
18
+ * Fix Comments controller destroy declaration. [#6482] by [@bliof]
19
+ * Stop pagination elements from overflowing outside of panel container. [#7599] by [@ray-curran]
20
+
21
+ ### Translation Improvements
22
+
23
+ * Update vi locale with more translations. [#7984] by [@rs-phunt]
24
+ * Update zh-CN locale with multiple corrections. [#7944] by [@hfl]
25
+ * Fix typo in Vietnamese locale for filter text. [#7920] by [@tvziet]
26
+ * Improve French translation. [#7653] by [@cprodhomme]
27
+
28
+ ### Documentation
29
+
30
+ * Add more documentation about PORO decorator requirements. [#7556] by [@sanfrecce-osaka]
31
+ * Add Load Paths docs to the active_admin.rb template. [#7541] by [@gabo-cs]
32
+
33
+ ### Performance
34
+
35
+ * Removes docs from exported gem. [#7013] by [@brunoarueira]
36
+
37
+ ## 2.13.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.13.0..v2.13.1)
38
+
39
+ ### Bug Fixes
40
+
41
+ * Honor load paths order when loading admin files. [#7488] by [@tf]
42
+ * Fix passing expected hash payload argument. [#7487] by [@ispyropoulos]
43
+
44
+ ## 2.13.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.12.0..v2.13.0)
45
+
46
+ ### Documentation
47
+
48
+ * Update validation errors documentation to account for deprecated `ActiveModel::Errors#keys`. [#7475] by [@amit]
49
+
50
+ ### Dependency Changes
51
+
52
+ * Drop rails 6.0 support. [#7476] by [@deivid-rodriguez]
53
+
54
+ ### Performance
55
+
56
+ * Fix pundit performance. [#7479] by [@deivid-rodriguez]
57
+
58
+ ## 2.12.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.11.2..v2.12.0)
59
+
60
+ ### Enhancements
61
+
62
+ * Add Ransack 3 compatibility. [#7453] by [@tagliala]
63
+
64
+ ### Bug Fixes
65
+
66
+ * Fix pundit namespace detection. [#7144] by [@vlad-psh]
67
+
68
+ ### Documentation
69
+
70
+ * Don't mention webpacker as the default asset generator in Rails. [#7377] by [@jaynetics]
71
+
72
+ ### Performance
73
+
74
+ * Avoid duplicate work when downloading CSV. [#7336] by [@deivid-rodriguez]
75
+
76
+ ## 2.11.2 [☰](https://github.com/activeadmin/activeadmin/compare/v2.11.1..v2.11.2)
77
+
78
+ ### Bug Fixes
79
+
80
+ * Fix disappearing BOM option for `CSVBuilder`. [#7170] by [@Karoid]
81
+
82
+ ## 2.11.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.11.0..v2.11.1)
83
+
84
+ ### Enhancements
85
+
86
+ * Add turbolinks support to has many js. [#7384] by [@amiel]
87
+
88
+ ### Documentation
89
+
90
+ * Remove `insert_tag` from Form-Partial docs. [#7394] by [@TonyArra]
91
+
92
+ ## 2.11.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.10.1..v2.11.0)
93
+
94
+ ### Enhancements
95
+
96
+ * Add Rails 7 Support. [#7235] by [@tagliala]
97
+
98
+ ### Bug Fixes
99
+
100
+ * Fix form SCSS variables no longer being defined in the outermost scope, so no longer being accessible. [#7341] by [@gigorok]
101
+
102
+ ## 2.10.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.10.0..v2.10.1)
103
+
104
+ ### Enhancements
105
+
106
+ * Apply `box-sizing: border-box` globally. [#7349] by [@deivid-rodriguez]
107
+ * Vendor normalize 8.0.1. [#7350] by [@deivid-rodriguez]
108
+ * Remove deprecation warning using controller filters inside initializer. [#7340] by [@mgrunberg]
109
+
110
+ ### Bug Fixes
111
+
112
+ * Fix frozen string error when downloading CSV and streaming disabled. [#7332] by [@deivid-rodriguez]
113
+
114
+ ## 2.10.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.9.0..v2.10.0)
115
+
116
+ ### Enhancements
117
+
118
+ * Load favicon from Webpacker assets when use_webpacker is set to true. [#6954] by [@Fs00]
119
+ * Don't apply sorting to collection until after scoping. [#7205] by [@agrobbin]
120
+ * Resolve dart sass deprecation warning for division. [#7095] by [@tordans]
121
+ * Use `instrument` from the Notifications API instead of low level `publish`. [#7262] by [@sprql]
122
+ * Avoid mutating string literals. [#6936] by [@tomgilligan]
123
+ * Include print styles in main stylesheet. [#6922] by [@deivid-rodriguez]
124
+ * Use `POST` for OmniAuth links. [#6916] by [@deivid-rodriguez]
125
+ * Scope new record instantiation by authorization scope. [#6884] by [@ngouy]
126
+ * Make `permit_params` and `belongs_to` order independent. [#6906] by [@deivid-rodriguez]
127
+ * Use collection length instead of running COUNTs for limited collections. [#5660] by [@MmKolodziej]
128
+
129
+ ### Bug Fixes
130
+
131
+ * Show ransackable_scopes filters in search results. [#7127] by [@vlad-psh]
132
+
133
+ ### Translation Improvements
134
+
135
+ * Fix Dutch translation for password reset button. [#7181] by [@mvz]
136
+ * Add few key to RO pagination.entry. [#6915] by [@lubosch]
137
+ * Change misleading Korean translation. [#6873] by [@1000ship]
138
+
139
+ ### Documentation
140
+
141
+ * Replace deprecated update_attributes! with update!. [#6959] by [@sergey-alekseev]
142
+ * Clarify docs on user setup. [#6872] by [@javawizard]
143
+
144
+ ### Dependency Changes
145
+
146
+ * Drop rails 5.2 support. [#7293] by [@deivid-rodriguez]
147
+ * Drop support for Ruby 2.5. [#7236] by [@alejandroperea]
148
+
5
149
  ## 2.9.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.8.1..v2.9.0)
6
150
 
7
151
  ### Enhancements
@@ -587,6 +731,7 @@ Please check [0-6-stable] for previous changes.
587
731
  [#5631]: https://github.com/activeadmin/activeadmin/pull/5631
588
732
  [#5632]: https://github.com/activeadmin/activeadmin/pull/5632
589
733
  [#5650]: https://github.com/activeadmin/activeadmin/pull/5650
734
+ [#5660]: https://github.com/activeadmin/activeadmin/pull/5660
590
735
  [#5662]: https://github.com/activeadmin/activeadmin/pull/5662
591
736
  [#5710]: https://github.com/activeadmin/activeadmin/pull/5710
592
737
  [#5726]: https://github.com/activeadmin/activeadmin/pull/5726
@@ -630,6 +775,7 @@ Please check [0-6-stable] for previous changes.
630
775
  [#6099]: https://github.com/activeadmin/activeadmin/pull/6099
631
776
  [#6124]: https://github.com/activeadmin/activeadmin/pull/6124
632
777
  [#6149]: https://github.com/activeadmin/activeadmin/pull/6149
778
+ [#6195]: https://github.com/activeadmin/activeadmin/pull/6195
633
779
  [#6198]: https://github.com/activeadmin/activeadmin/pull/6198
634
780
  [#6210]: https://github.com/activeadmin/activeadmin/pull/6210
635
781
  [#6221]: https://github.com/activeadmin/activeadmin/pull/6221
@@ -644,24 +790,79 @@ Please check [0-6-stable] for previous changes.
644
790
  [#6451]: https://github.com/activeadmin/activeadmin/pull/6451
645
791
  [#6460]: https://github.com/activeadmin/activeadmin/pull/6460
646
792
  [#6462]: https://github.com/activeadmin/activeadmin/pull/6462
793
+ [#6482]: https://github.com/activeadmin/activeadmin/pull/6482
647
794
  [#6487]: https://github.com/activeadmin/activeadmin/pull/6487
648
795
  [#6523]: https://github.com/activeadmin/activeadmin/pull/6523
796
+ [#6535]: https://github.com/activeadmin/activeadmin/pull/6535
649
797
  [#6536]: https://github.com/activeadmin/activeadmin/pull/6536
650
798
  [#6548]: https://github.com/activeadmin/activeadmin/pull/6548
651
799
  [#6583]: https://github.com/activeadmin/activeadmin/pull/6583
652
800
  [#6584]: https://github.com/activeadmin/activeadmin/pull/6584
653
-
801
+ [#6872]: https://github.com/activeadmin/activeadmin/pull/6872
802
+ [#6873]: https://github.com/activeadmin/activeadmin/pull/6873
803
+ [#6884]: https://github.com/activeadmin/activeadmin/pull/6884
804
+ [#6906]: https://github.com/activeadmin/activeadmin/pull/6906
805
+ [#6915]: https://github.com/activeadmin/activeadmin/pull/6915
806
+ [#6916]: https://github.com/activeadmin/activeadmin/pull/6916
807
+ [#6922]: https://github.com/activeadmin/activeadmin/pull/6922
808
+ [#6936]: https://github.com/activeadmin/activeadmin/pull/6936
809
+ [#6954]: https://github.com/activeadmin/activeadmin/pull/6954
810
+ [#6959]: https://github.com/activeadmin/activeadmin/pull/6959
811
+ [#7002]: https://github.com/activeadmin/activeadmin/pull/7002
812
+ [#7013]: https://github.com/activeadmin/activeadmin/pull/7013
813
+ [#7095]: https://github.com/activeadmin/activeadmin/pull/7095
814
+ [#7127]: https://github.com/activeadmin/activeadmin/pull/7127
815
+ [#7144]: https://github.com/activeadmin/activeadmin/pull/7144
816
+ [#7170]: https://github.com/activeadmin/activeadmin/pull/7170
817
+ [#7181]: https://github.com/activeadmin/activeadmin/pull/7181
818
+ [#7205]: https://github.com/activeadmin/activeadmin/pull/7205
819
+ [#7235]: https://github.com/activeadmin/activeadmin/pull/7235
820
+ [#7236]: https://github.com/activeadmin/activeadmin/pull/7236
821
+ [#7262]: https://github.com/activeadmin/activeadmin/pull/7262
822
+ [#7293]: https://github.com/activeadmin/activeadmin/pull/7293
823
+ [#7332]: https://github.com/activeadmin/activeadmin/pull/7332
824
+ [#7336]: https://github.com/activeadmin/activeadmin/pull/7336
825
+ [#7340]: https://github.com/activeadmin/activeadmin/pull/7340
826
+ [#7341]: https://github.com/activeadmin/activeadmin/pull/7341
827
+ [#7349]: https://github.com/activeadmin/activeadmin/pull/7349
828
+ [#7350]: https://github.com/activeadmin/activeadmin/pull/7350
829
+ [#7377]: https://github.com/activeadmin/activeadmin/pull/7377
830
+ [#7384]: https://github.com/activeadmin/activeadmin/pull/7384
831
+ [#7394]: https://github.com/activeadmin/activeadmin/pull/7394
832
+ [#7453]: https://github.com/activeadmin/activeadmin/pull/7453
833
+ [#7475]: https://github.com/activeadmin/activeadmin/pull/7475
834
+ [#7476]: https://github.com/activeadmin/activeadmin/pull/7476
835
+ [#7479]: https://github.com/activeadmin/activeadmin/pull/7479
836
+ [#7487]: https://github.com/activeadmin/activeadmin/pull/7487
837
+ [#7488]: https://github.com/activeadmin/activeadmin/pull/7488
838
+ [#7541]: https://github.com/activeadmin/activeadmin/pull/7541
839
+ [#7556]: https://github.com/activeadmin/activeadmin/pull/7556
840
+ [#7599]: https://github.com/activeadmin/activeadmin/pull/7599
841
+ [#7653]: https://github.com/activeadmin/activeadmin/pull/7653
842
+ [#7772]: https://github.com/activeadmin/activeadmin/pull/7772
843
+ [#7920]: https://github.com/activeadmin/activeadmin/pull/7920
844
+ [#7944]: https://github.com/activeadmin/activeadmin/pull/7944
845
+ [#7984]: https://github.com/activeadmin/activeadmin/pull/7984
846
+ [#7985]: https://github.com/activeadmin/activeadmin/pull/7985
847
+ [#7986]: https://github.com/activeadmin/activeadmin/pull/7986
848
+
849
+ [@1000ship]: https://github.com/1000ship
654
850
  [@5t111111]: https://github.com/5t111111
655
851
  [@aarek]: https://github.com/aarek
656
852
  [@adler99]: https://github.com/adler99
853
+ [@agrobbin]: https://github.com/agrobbin
657
854
  [@ajw725]: https://github.com/ajw725
855
+ [@alejandroperea]: https://github.com/alejandroperea
658
856
  [@alex-bogomolov]: https://github.com/alex-bogomolov
659
857
  [@amiel]: https://github.com/amiel
858
+ [@amit]: https://github.com/amit
660
859
  [@amiuhle]: https://github.com/amiuhle
661
860
  [@andreslemik]: https://github.com/andreslemik
662
861
  [@bartoszkopinski]: https://github.com/bartoszkopinski
862
+ [@bliof]: https://github.com/bliof
663
863
  [@blocknotes]: https://github.com/blocknotes
664
864
  [@bolshakov]: https://github.com/bolshakov
865
+ [@brunoarueira]: https://github.com/brunoarueira
665
866
  [@brunvez]: https://github.com/brunvez
666
867
  [@buren]: https://github.com/buren
667
868
  [@chancancode]: https://github.com/chancancode
@@ -681,71 +882,99 @@ Please check [0-6-stable] for previous changes.
681
882
  [@FabioRos]: https://github.com/FabioRos
682
883
  [@faucct]: https://github.com/faucct
683
884
  [@Fivell]: https://github.com/Fivell
885
+ [@Fs00]: https://github.com/Fs00
684
886
  [@fuzziness]: https://github.com/fuzziness
887
+ [@gabo-cs]: https://github.com/gabo-cs
685
888
  [@giapnhdev]: https://github.com/giapnhdev
889
+ [@gigorok]: https://github.com/gigorok
686
890
  [@glebtv]: https://github.com/glebtv
687
891
  [@gonzedge]: https://github.com/gonzedge
688
892
  [@guigs]: https://github.com/guigs
689
893
  [@HappyKadaver]: https://github.com/HappyKadaver
894
+ [@hfl]: https://github.com/hfl
690
895
  [@imcvampire]: https://github.com/imcvampire
691
896
  [@innparusu95]: https://github.com/innparusu95
692
897
  [@ionut998]: https://github.com/ionut998
693
898
  [@irmela]: https://github.com/irmela
899
+ [@ispyropoulos]: https://github.com/ispyropoulos
694
900
  [@Ivanov-Anton]: https://github.com/Ivanov-Anton
695
901
  [@jasl]: https://github.com/jasl
902
+ [@javawizard]: https://github.com/javawizard
696
903
  [@javierjulio]: https://github.com/javierjulio
697
904
  [@jawa]: https://github.com/jawa
905
+ [@jaynetics]: https://github.com/jaynetics
906
+ [@JewelSam]: https://github.com/JewelSam
698
907
  [@JiiHu]: https://github.com/JiiHu
699
908
  [@jiikko]: https://github.com/jiikko
700
909
  [@johnnyshields]: https://github.com/johnnyshields
701
910
  [@jscheid]: https://github.com/jscheid
702
911
  [@juril33t]: https://github.com/juril33t
703
912
  [@jwesorick]: https://github.com/jwesorick
913
+ [@Karoid]: https://github.com/Karoid
704
914
  [@kjeldahl]: https://github.com/kjeldahl
705
915
  [@ko-lem]: https://github.com/ko-lem
706
916
  [@kobeumut]: https://github.com/kobeumut
707
917
  [@Kris-LIBIS]: https://github.com/Kris-LIBIS
708
918
  [@krzcho]: https://github.com/krzcho
709
919
  [@kwent]: https://github.com/kwent
920
+ [@lanzhiheng]: https://github.com/lanzhiheng
710
921
  [@leio10]: https://github.com/leio10
711
922
  [@littleforest]: https://github.com/littleforest
712
923
  [@Looooong]: https://github.com/Looooong
924
+ [@lubosch]: https://github.com/lubosch
713
925
  [@markstory]: https://github.com/markstory
714
926
  [@mauriciopasquier]: https://github.com/mauriciopasquier
715
927
  [@mconiglio]: https://github.com/mconiglio
928
+ [@mgrunberg]: https://github.com/mgrunberg
716
929
  [@micred]: https://github.com/micred
717
930
  [@mirelon]: https://github.com/mirelon
931
+ [@MmKolodziej]: https://github.com/MmKolodziej
718
932
  [@mshalaby]: https://github.com/mshalaby
719
933
  [@munen]: https://github.com/munen
934
+ [@mvz]: https://github.com/mvz
720
935
  [@ndbroadbent]: https://github.com/ndbroadbent
936
+ [@ngouy]: https://github.com/ngouy
721
937
  [@Nguyenanh]: https://github.com/Nguyenanh
722
938
  [@orkhan]: https://github.com/orkhan
723
939
  [@panasyuk]: https://github.com/panasyuk
724
940
  [@PChambino]: https://github.com/PChambino
725
941
  [@potatosalad]: https://github.com/potatosalad
726
942
  [@pranas]: https://github.com/pranas
943
+ [@ray-curran]: https://github.com/ray-curran
727
944
  [@renotocn]: https://github.com/renotocn
728
945
  [@rn0rno]: https://github.com/rn0rno
729
946
  [@RobinvanderVliet]: https://github.com/RobinvanderVliet
730
947
  [@rogerkk]: https://github.com/rogerkk
731
948
  [@roramirez]: https://github.com/roramirez
949
+ [@rs-phunt]: https://github.com/rs-phunt
950
+ [@sanfrecce-osaka]: https://github.com/sanfrecce-osaka
732
951
  [@seanlinsley]: https://github.com/seanlinsley
952
+ [@sergey-alekseev]: https://github.com/sergey-alekseev
733
953
  [@sgara]: https://github.com/sgara
734
954
  [@ShallmentMo]: https://github.com/ShallmentMo
735
955
  [@shekibobo]: https://github.com/shekibobo
736
956
  [@shouya]: https://github.com/shouya
737
957
  [@sjieg]: https://github.com/sjieg
958
+ [@sprql]: https://github.com/sprql
738
959
  [@stefsava]: https://github.com/stefsava
739
960
  [@stereoscott]: https://github.com/stereoscott
961
+ [@tagliala]: https://github.com/tagliala
740
962
  [@taralbass]: https://github.com/taralbass
963
+ [@tf]: https://github.com/tf
741
964
  [@tiagotex]: https://github.com/tiagotex
742
965
  [@timoschilling]: https://github.com/timoschilling
743
966
  [@TimPetricola]: https://github.com/TimPetricola
967
+ [@timwis]: https://github.com/timwis
968
+ [@tomgilligan]: https://github.com/tomgilligan
969
+ [@TonyArra]: https://github.com/TonyArra
970
+ [@tordans]: https://github.com/tordans
971
+ [@tvziet]: https://github.com/tvziet
744
972
  [@utkarsh2102]: https://github.com/utkarsh2102
745
973
  [@varyonic]: https://github.com/varyonic
746
974
  [@vcsjones]: https://github.com/vcsjones
747
975
  [@vfonic]: https://github.com/vfonic
748
976
  [@violeta-p]: https://github.com/violeta-p
977
+ [@vlad-psh]: https://github.com/vlad-psh
749
978
  [@WaKeMaTTa]: https://github.com/WaKeMaTTa
750
979
  [@wasifhossain]: https://github.com/wasifhossain
751
980
  [@westonganger]: https://github.com/westonganger
data/CONTRIBUTING.md CHANGED
@@ -25,8 +25,7 @@ git checkout -b 325-add-japanese-translations
25
25
 
26
26
  ### Get the test suite running
27
27
 
28
- Make sure you're using a recent ruby and have the `bundler` gem installed, at
29
- least version `1.14.3`.
28
+ Make sure you're using a recent Ruby version.
30
29
 
31
30
  You'll also need chrome installed in order to run cucumber scenarios.
32
31
 
@@ -56,14 +55,14 @@ Now you should be able to run the entire suite using:
56
55
  bin/rake
57
56
  ```
58
57
 
59
- The test run will generate a sample Rails application in `tmp/test_apps` to run the
60
- tests against.
58
+ The task will generate a sample Rails application in `tmp/test_apps` to run the
59
+ test suite against.
61
60
 
62
61
  If you want to test against a Rails version different from the latest, make sure
63
62
  you use the correct Gemfile, for example:
64
63
 
65
64
  ```sh
66
- export BUNDLE_GEMFILE=gemfiles/rails_60/Gemfile
65
+ export BUNDLE_GEMFILE=gemfiles/rails_61/Gemfile
67
66
  ```
68
67
 
69
68
  **Warning** SCSS assets are aimed to be used indifferently with Sprockets **and** webpacker.
data/README.md CHANGED
@@ -95,8 +95,8 @@ Thanks to [Open Collective][opencollective contributors] and all our Open Collec
95
95
  [rubygems]: https://rubygems.org/gems/activeadmin
96
96
  [actions_badge]: https://github.com/activeadmin/activeadmin/workflows/ci/badge.svg
97
97
  [actions]: https://github.com/activeadmin/activeadmin/actions
98
- [coverage_badge]: https://api.codeclimate.com/v1/badges/779e407d22bacff19733/test_coverage
99
- [coverage]: https://codeclimate.com/github/activeadmin/activeadmin/test_coverage
98
+ [coverage_badge]: https://codecov.io/gh/activeadmin/activeadmin/branch/master/graph/badge.svg?token=NAjeBdkQXW
99
+ [coverage]: https://codecov.io/gh/activeadmin/activeadmin
100
100
  [inch_badge]: http://inch-ci.org/github/activeadmin/activeadmin.svg?branch=master
101
101
  [inch]: http://inch-ci.org/github/activeadmin/activeadmin
102
102
  [tidelift_badge]: https://tidelift.com/badges/github/activeadmin/activeadmin
@@ -81,7 +81,7 @@
81
81
  }
82
82
  });
83
83
  }
84
- var onDOMReady = function onDOMReady() {
84
+ var onDOMReady$2 = function onDOMReady() {
85
85
  $(".batch_actions_selector li a").off("click confirm:complete");
86
86
  $(".batch_actions_selector li a").on("click", function(event) {
87
87
  var _this = this;
@@ -125,7 +125,7 @@
125
125
  });
126
126
  }
127
127
  };
128
- $(document).ready(onDOMReady).on("page:load turbolinks:load", onDOMReady);
128
+ $(document).ready(onDOMReady$2).on("page:load turbolinks:load", onDOMReady$2);
129
129
  var CheckboxToggler = function() {
130
130
  function CheckboxToggler(options, container) {
131
131
  this.options = options;
@@ -392,7 +392,6 @@
392
392
  $(document).on("change", '.has_many_container[data-sortable] :input[name$="[_destroy]"]', function() {
393
393
  recompute_positions($(this).closest(".has_many"));
394
394
  });
395
- init_sortable();
396
395
  $(document).on("has_many_add:after", ".has_many_container", init_sortable);
397
396
  });
398
397
  var init_sortable = function init_sortable() {
@@ -426,6 +425,7 @@
426
425
  }
427
426
  });
428
427
  };
428
+ $(document).ready(init_sortable).on("page:load turbolinks:load", init_sortable);
429
429
  var PerPage = function() {
430
430
  function PerPage(element) {
431
431
  this.element = element;
@@ -471,7 +471,14 @@
471
471
  function _inheritsLoose(subClass, superClass) {
472
472
  subClass.prototype = Object.create(superClass.prototype);
473
473
  subClass.prototype.constructor = subClass;
474
- subClass.__proto__ = superClass;
474
+ _setPrototypeOf(subClass, superClass);
475
+ }
476
+ function _setPrototypeOf(o, p) {
477
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
478
+ o.__proto__ = p;
479
+ return o;
480
+ };
481
+ return _setPrototypeOf(o, p);
475
482
  }
476
483
  var TableCheckboxToggler = function(_CheckboxToggler) {
477
484
  _inheritsLoose(TableCheckboxToggler, _CheckboxToggler);
@@ -501,17 +508,14 @@
501
508
  return TableCheckboxToggler;
502
509
  }(CheckboxToggler);
503
510
  $.widget.bridge("tableCheckboxToggler", TableCheckboxToggler);
504
- var onDOMReady$2 = function onDOMReady() {
511
+ var onDOMReady = function onDOMReady() {
505
512
  return $("#active_admin_content .tabs").tabs();
506
513
  };
507
- $(document).ready(onDOMReady$2).on("page:load turbolinks:load", onDOMReady$2);
514
+ $(document).ready(onDOMReady).on("page:load turbolinks:load", onDOMReady);
508
515
  function modal_dialog(message, inputs, callback) {
509
516
  console.warn("ActiveAdmin.modal_dialog is deprecated in favor of ActiveAdmin.ModalDialog, please update usage.");
510
517
  return ModalDialog(message, inputs, callback);
511
518
  }
512
519
  exports.ModalDialog = ModalDialog;
513
520
  exports.modal_dialog = modal_dialog;
514
- Object.defineProperty(exports, "__esModule", {
515
- value: true
516
- });
517
521
  });
@@ -1,41 +1,57 @@
1
1
  /* Active Admin CSS */
2
- // Normalize
3
- @import "./normalize";
2
+ @media screen {
3
+ // Normalize
4
+ @import "./normalize";
4
5
 
5
- // Partials
6
- @import "./typography";
7
- @import "./header";
8
- @import "./forms";
9
- @import "./components/comments";
10
- @import "./components/flash_messages";
11
- @import "./components/date_picker";
12
- @import "./components/tables";
13
- @import "./components/batch_actions";
14
- @import "./components/modal_dialog";
15
- @import "./components/blank_slates";
16
- @import "./components/breadcrumbs";
17
- @import "./components/dropdown_menu";
18
- @import "./components/buttons";
19
- @import "./components/grid";
20
- @import "./components/links";
21
- @import "./components/pagination";
22
- @import "./components/panels";
23
- @import "./components/columns";
24
- @import "./components/scopes";
25
- @import "./components/status_tags";
26
- @import "./components/table_tools";
27
- @import "./components/index_list";
28
- @import "./components/unsupported_browser";
29
- @import "./components/tabs";
30
- @import "./pages/logged_out";
31
- @import "./structure/footer";
32
- @import "./structure/main_structure";
33
- @import "./structure/title_bar";
6
+ // Partials
7
+ @import "./typography";
8
+ @import "./header";
9
+ @import "./forms";
10
+ @import "./components/comments";
11
+ @import "./components/flash_messages";
12
+ @import "./components/date_picker";
13
+ @import "./components/tables";
14
+ @import "./components/batch_actions";
15
+ @import "./components/modal_dialog";
16
+ @import "./components/blank_slates";
17
+ @import "./components/breadcrumbs";
18
+ @import "./components/dropdown_menu";
19
+ @import "./components/buttons";
20
+ @import "./components/grid";
21
+ @import "./components/links";
22
+ @import "./components/pagination";
23
+ @import "./components/panels";
24
+ @import "./components/columns";
25
+ @import "./components/scopes";
26
+ @import "./components/status_tags";
27
+ @import "./components/table_tools";
28
+ @import "./components/index_list";
29
+ @import "./components/unsupported_browser";
30
+ @import "./components/tabs";
31
+ @import "./pages/logged_out";
32
+ @import "./structure/footer";
33
+ @import "./structure/main_structure";
34
+ @import "./structure/title_bar";
34
35
 
35
- body {
36
- @include sans-family;
37
- line-height: 1.5;
38
- font-size: 72%;
39
- background: $body-background-color;
40
- color: $text-color;
36
+ html {
37
+ box-sizing: border-box;
38
+ }
39
+
40
+ *,
41
+ *:before,
42
+ *:after {
43
+ box-sizing: inherit;
44
+ }
45
+
46
+ body {
47
+ @include sans-family;
48
+ line-height: 1.5;
49
+ font-size: 72%;
50
+ background: $body-background-color;
51
+ color: $text-color;
52
+ }
53
+ }
54
+
55
+ @media print {
56
+ @import "./print";
41
57
  }
@@ -171,7 +171,7 @@ form {
171
171
  &.boolean {
172
172
  min-height: 1.1em;
173
173
  label {
174
- width: 80%;
174
+ width: 100%;
175
175
  padding-left:20%;
176
176
  padding-right: 10px;
177
177
  text-transform: none !important;
@@ -250,8 +250,6 @@ form {
250
250
 
251
251
  // -------------------------------------- Sidebar Forms
252
252
 
253
- $sidebar-inner-content-width: $sidebar-width - ($section-padding * 2);
254
-
255
253
  .sidebar_section {
256
254
 
257
255
  label {
@@ -274,13 +272,6 @@ $sidebar-inner-content-width: $sidebar-width - ($section-padding * 2);
274
272
 
275
273
  // -------------------------------------- Filter Forms
276
274
 
277
- $filter-field-seperator-width: 12px;
278
-
279
- $side-by-side-filter-input-width: ($sidebar-inner-content-width / 2) - ($text-input-horizontal-padding * 2) - $filter-field-seperator-width;
280
- $side-by-side-filter-select-width: ($sidebar-inner-content-width / 2) - $filter-field-seperator-width;
281
-
282
- $date-range-filter-input-width: ($sidebar-inner-content-width / 2) - ($filter-field-seperator-width / 2);
283
-
284
275
  form.filter_form {
285
276
  .filter_form_field {
286
277
  margin-bottom: 10px;
@@ -313,7 +304,6 @@ form.filter_form {
313
304
 
314
305
  &.filter_date_range {
315
306
  input[type=text] {
316
- box-sizing: border-box;
317
307
  width: $date-range-filter-input-width;
318
308
 
319
309
  + input {