administrate 0.8.1 → 0.12.0

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

Potentially problematic release.


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

Files changed (100) hide show
  1. checksums.yaml +5 -5
  2. data/app/assets/javascripts/administrate/components/date_time_picker.js +5 -1
  3. data/app/assets/stylesheets/administrate/base/_typography.scss +1 -1
  4. data/app/assets/stylesheets/administrate/components/_cells.scss +2 -6
  5. data/app/assets/stylesheets/docs.scss +1 -0
  6. data/app/controllers/administrate/application_controller.rb +53 -13
  7. data/app/controllers/concerns/administrate/punditize.rb +36 -0
  8. data/app/helpers/administrate/application_helper.rb +26 -7
  9. data/app/views/administrate/application/_collection.html.erb +11 -10
  10. data/app/views/administrate/application/_flashes.html.erb +1 -1
  11. data/app/views/administrate/application/_form.html.erb +5 -2
  12. data/app/views/administrate/application/{_icons.erb → _icons.html.erb} +0 -0
  13. data/app/views/administrate/application/_navigation.html.erb +1 -1
  14. data/app/views/administrate/application/edit.html.erb +3 -3
  15. data/app/views/administrate/application/index.html.erb +7 -2
  16. data/app/views/administrate/application/new.html.erb +6 -1
  17. data/app/views/administrate/application/show.html.erb +4 -4
  18. data/app/views/fields/belongs_to/_index.html.erb +1 -1
  19. data/app/views/fields/belongs_to/_show.html.erb +1 -1
  20. data/app/views/fields/date_time/_form.html.erb +1 -1
  21. data/app/views/fields/date_time/_index.html.erb +1 -1
  22. data/app/views/fields/has_many/_form.html.erb +2 -2
  23. data/app/views/fields/has_many/_index.html.erb +1 -1
  24. data/app/views/fields/has_many/_show.html.erb +8 -5
  25. data/app/views/fields/has_one/_form.html.erb +1 -1
  26. data/app/views/fields/password/_form.html.erb +23 -0
  27. data/app/views/fields/password/_index.html.erb +18 -0
  28. data/app/views/fields/password/_show.html.erb +18 -0
  29. data/app/views/fields/polymorphic/_form.html.erb +11 -9
  30. data/app/views/fields/polymorphic/_show.html.erb +8 -4
  31. data/app/views/fields/select/_form.html.erb +1 -1
  32. data/app/views/fields/time/_form.html.erb +22 -0
  33. data/app/views/fields/time/_index.html.erb +17 -0
  34. data/app/views/fields/time/_show.html.erb +17 -0
  35. data/app/views/fields/url/_form.html.erb +23 -0
  36. data/app/views/fields/url/_index.html.erb +20 -0
  37. data/app/views/fields/url/_show.html.erb +20 -0
  38. data/app/views/layouts/administrate/application.html.erb +1 -1
  39. data/config/locales/administrate.al.yml +28 -0
  40. data/config/locales/administrate.ar.yml +6 -6
  41. data/config/locales/administrate.bs.yml +27 -0
  42. data/config/locales/administrate.ca.yml +28 -0
  43. data/config/locales/administrate.da.yml +6 -6
  44. data/config/locales/administrate.de.yml +8 -8
  45. data/config/locales/administrate.en.yml +6 -6
  46. data/config/locales/administrate.es.yml +6 -6
  47. data/config/locales/administrate.fr.yml +6 -6
  48. data/config/locales/administrate.id.yml +28 -0
  49. data/config/locales/administrate.it.yml +6 -6
  50. data/config/locales/administrate.ja.yml +6 -6
  51. data/config/locales/administrate.ko.yml +11 -11
  52. data/config/locales/administrate.nl.yml +6 -6
  53. data/config/locales/administrate.pl.yml +6 -6
  54. data/config/locales/administrate.pt-BR.yml +6 -6
  55. data/config/locales/administrate.pt.yml +6 -6
  56. data/config/locales/administrate.ru.yml +6 -6
  57. data/config/locales/administrate.sv.yml +6 -6
  58. data/config/locales/administrate.uk.yml +6 -6
  59. data/config/locales/administrate.vi.yml +6 -6
  60. data/config/locales/administrate.zh-CN.yml +6 -6
  61. data/config/locales/administrate.zh-TW.yml +8 -8
  62. data/docs/authorization.md +69 -0
  63. data/docs/customizing_attribute_partials.md +20 -1
  64. data/docs/customizing_controller_actions.md +2 -1
  65. data/docs/customizing_dashboards.md +152 -4
  66. data/docs/customizing_page_views.md +5 -1
  67. data/docs/getting_started.md +60 -10
  68. data/docs/rails_api.md +43 -0
  69. data/lib/administrate/base_dashboard.rb +27 -8
  70. data/lib/administrate/engine.rb +1 -1
  71. data/lib/administrate/field/associative.rb +8 -4
  72. data/lib/administrate/field/base.rb +1 -1
  73. data/lib/administrate/field/belongs_to.rb +6 -3
  74. data/lib/administrate/field/date_time.rb +13 -2
  75. data/lib/administrate/field/deferred.rb +10 -5
  76. data/lib/administrate/field/has_many.rb +18 -11
  77. data/lib/administrate/field/has_one.rb +16 -8
  78. data/lib/administrate/field/password.rb +25 -0
  79. data/lib/administrate/field/polymorphic.rb +41 -3
  80. data/lib/administrate/field/time.rb +8 -0
  81. data/lib/administrate/field/url.rb +21 -0
  82. data/lib/administrate/namespace.rb +1 -1
  83. data/lib/administrate/order.rb +40 -5
  84. data/lib/administrate/page/base.rb +8 -0
  85. data/lib/administrate/page/collection.rb +5 -1
  86. data/lib/administrate/resource_resolver.rb +2 -2
  87. data/lib/administrate/search.rb +121 -10
  88. data/lib/administrate/version.rb +1 -1
  89. data/lib/generators/administrate/dashboard/USAGE +1 -1
  90. data/lib/generators/administrate/dashboard/dashboard_generator.rb +11 -3
  91. data/lib/generators/administrate/dashboard/templates/controller.rb.erb +24 -11
  92. data/lib/generators/administrate/dashboard/templates/dashboard.rb.erb +18 -6
  93. data/lib/generators/administrate/install/install_generator.rb +13 -6
  94. data/lib/generators/administrate/install/templates/{application_controller.rb → application_controller.rb.erb} +1 -1
  95. data/lib/generators/administrate/routes/routes_generator.rb +11 -1
  96. data/lib/generators/administrate/routes/templates/routes.rb.erb +1 -1
  97. data/lib/generators/administrate/views/field_generator.rb +19 -5
  98. data/lib/generators/administrate/views/layout_generator.rb +1 -0
  99. metadata +41 -28
  100. data/config/secrets.yml +0 -14
@@ -1,3 +1,3 @@
1
1
  module Administrate
2
- VERSION = "0.8.1".freeze
2
+ VERSION = "0.12.0".freeze
3
3
  end
@@ -3,7 +3,7 @@ Description:
3
3
  pulling the attributes from database columns.
4
4
 
5
5
  Example:
6
- rails generate administrate:dashboard FooBar
6
+ rails generate administrate:dashboard FooBar [--namespace admin]
7
7
 
8
8
  This will create:
9
9
  app/dashboards/foo_bar_dashboard.rb
@@ -10,7 +10,7 @@ module Administrate
10
10
  enum: "Field::String",
11
11
  float: "Field::Number",
12
12
  integer: "Field::Number",
13
- time: "Field::DateTime",
13
+ time: "Field::Time",
14
14
  text: "Field::Text",
15
15
  string: "Field::String",
16
16
  }
@@ -24,6 +24,8 @@ module Administrate
24
24
  COLLECTION_ATTRIBUTE_LIMIT = 4
25
25
  READ_ONLY_ATTRIBUTES = %w[id created_at updated_at]
26
26
 
27
+ class_option :namespace, type: :string, default: "admin"
28
+
27
29
  source_root File.expand_path("../templates", __FILE__)
28
30
 
29
31
  def create_dashboard_definition
@@ -35,7 +37,7 @@ module Administrate
35
37
 
36
38
  def create_resource_controller
37
39
  destination = Rails.root.join(
38
- "app/controllers/admin/#{file_name.pluralize}_controller.rb",
40
+ "app/controllers/#{namespace}/#{file_name.pluralize}_controller.rb",
39
41
  )
40
42
 
41
43
  template("controller.rb.erb", destination)
@@ -43,8 +45,14 @@ module Administrate
43
45
 
44
46
  private
45
47
 
48
+ def namespace
49
+ options[:namespace]
50
+ end
51
+
46
52
  def attributes
47
- klass.reflections.keys + klass.attribute_names - redundant_attributes
53
+ klass.reflections.keys +
54
+ klass.columns.map(&:name) -
55
+ redundant_attributes
48
56
  end
49
57
 
50
58
  def form_attributes
@@ -1,18 +1,31 @@
1
- module Admin
2
- class <%= class_name.pluralize %>Controller < Admin::ApplicationController
3
- # To customize the behavior of this controller,
4
- # you can overwrite any of the RESTful actions. For example:
1
+ module <%= namespace.classify %>
2
+ class <%= class_name.pluralize %>Controller < <%= namespace.classify %>::ApplicationController
3
+ # Overwrite any of the RESTful controller actions to implement custom behavior
4
+ # For example, you may want to send an email after a foo is updated.
5
5
  #
6
- # def index
7
- # super
8
- # @resources = <%= class_name %>.
9
- # page(params[:page]).
10
- # per(10)
6
+ # def update
7
+ # foo = Foo.find(params[:id])
8
+ # foo.update(params[:foo])
9
+ # send_foo_updated_email
11
10
  # end
12
11
 
13
- # Define a custom finder by overriding the `find_resource` method:
12
+ # Override this method to specify custom lookup behavior.
13
+ # This will be used to set the resource for the `show`, `edit`, and `update`
14
+ # actions.
15
+ #
14
16
  # def find_resource(param)
15
- # <%= class_name %>.find_by!(slug: param)
17
+ # Foo.find_by!(slug: param)
18
+ # end
19
+
20
+ # Override this if you have certain roles that require a subset
21
+ # this will be used to set the records shown on the `index` action.
22
+ #
23
+ # def scoped_resource
24
+ # if current_user.super_admin?
25
+ # resource_class
26
+ # else
27
+ # resource_class.with_less_stuff
28
+ # end
16
29
  # end
17
30
 
18
31
  # See https://administrate-prototype.herokuapp.com/customizing_controller_actions
@@ -18,20 +18,20 @@ class <%= class_name %>Dashboard < Administrate::BaseDashboard
18
18
  #
19
19
  # By default, it's limited to four items to reduce clutter on index pages.
20
20
  # Feel free to add, remove, or rearrange items.
21
- COLLECTION_ATTRIBUTES = [
21
+ COLLECTION_ATTRIBUTES = %i[
22
22
  <%=
23
23
  attributes.first(COLLECTION_ATTRIBUTE_LIMIT).map do |attr|
24
- " :#{attr},"
24
+ " #{attr}"
25
25
  end.join("\n")
26
26
  %>
27
27
  ].freeze
28
28
 
29
29
  # SHOW_PAGE_ATTRIBUTES
30
30
  # an array of attributes that will be displayed on the model's show page.
31
- SHOW_PAGE_ATTRIBUTES = [
31
+ SHOW_PAGE_ATTRIBUTES = %i[
32
32
  <%=
33
33
  attributes.map do |attr|
34
- " :#{attr},"
34
+ " #{attr}"
35
35
  end.join("\n")
36
36
  %>
37
37
  ].freeze
@@ -39,14 +39,26 @@ class <%= class_name %>Dashboard < Administrate::BaseDashboard
39
39
  # FORM_ATTRIBUTES
40
40
  # an array of attributes that will be displayed
41
41
  # on the model's form (`new` and `edit`) pages.
42
- FORM_ATTRIBUTES = [
42
+ FORM_ATTRIBUTES = %i[
43
43
  <%=
44
44
  form_attributes.map do |attr|
45
- " :#{attr},"
45
+ " #{attr}"
46
46
  end.join("\n")
47
47
  %>
48
48
  ].freeze
49
49
 
50
+ # COLLECTION_FILTERS
51
+ # a hash that defines filters that can be used while searching via the search
52
+ # field of the dashboard.
53
+ #
54
+ # For example to add an option to search for open resources by typing "open:"
55
+ # in the search field:
56
+ #
57
+ # COLLECTION_FILTERS = {
58
+ # open: ->(resources) { where(open: true) }
59
+ # }.freeze
60
+ COLLECTION_FILTERS = {}.freeze
61
+
50
62
  # Overwrite this method to customize how <%= file_name.pluralize.humanize.downcase %> are displayed
51
63
  # across all pages of the admin dashboard.
52
64
  #
@@ -8,34 +8,41 @@ module Administrate
8
8
  include Administrate::GeneratorHelpers
9
9
  source_root File.expand_path("../templates", __FILE__)
10
10
 
11
+ class_option :namespace, type: :string, default: "admin"
12
+
11
13
  def run_routes_generator
12
14
  if dashboard_resources.none?
13
- call_generator("administrate:routes")
15
+ call_generator("administrate:routes", "--namespace", namespace)
14
16
  load Rails.root.join("config/routes.rb")
15
17
  end
16
18
  end
17
19
 
18
20
  def create_dashboard_controller
19
- copy_file(
20
- "application_controller.rb",
21
- "app/controllers/admin/application_controller.rb"
21
+ template(
22
+ "application_controller.rb.erb",
23
+ "app/controllers/#{namespace}/application_controller.rb",
22
24
  )
23
25
  end
24
26
 
25
27
  def run_dashboard_generators
26
28
  singular_dashboard_resources.each do |resource|
27
- call_generator("administrate:dashboard", resource)
29
+ call_generator "administrate:dashboard", resource,
30
+ "--namespace", namespace
28
31
  end
29
32
  end
30
33
 
31
34
  private
32
35
 
36
+ def namespace
37
+ options[:namespace]
38
+ end
39
+
33
40
  def singular_dashboard_resources
34
41
  dashboard_resources.map(&:to_s).map(&:singularize)
35
42
  end
36
43
 
37
44
  def dashboard_resources
38
- Administrate::Namespace.new(:admin).resources
45
+ Administrate::Namespace.new(namespace).resources
39
46
  end
40
47
  end
41
48
  end
@@ -4,7 +4,7 @@
4
4
  #
5
5
  # If you want to add pagination or other controller-level concerns,
6
6
  # you're free to overwrite the RESTful controller actions.
7
- module Admin
7
+ module <%= namespace.classify %>
8
8
  class ApplicationController < Administrate::ApplicationController
9
9
  before_action :authenticate_admin
10
10
 
@@ -1,4 +1,9 @@
1
- Rails.application.eager_load!
1
+ if defined?(Zeitwerk)
2
+ Zeitwerk::Loader.eager_load_all
3
+ else
4
+ Rails.application.eager_load!
5
+ end
6
+
2
7
  require "rails/generators/base"
3
8
  require "administrate/namespace"
4
9
 
@@ -6,6 +11,7 @@ module Administrate
6
11
  module Generators
7
12
  class RoutesGenerator < Rails::Generators::Base
8
13
  source_root File.expand_path("../templates", __FILE__)
14
+ class_option :namespace, type: :string, default: "admin"
9
15
 
10
16
  def insert_dashboard_routes
11
17
  if should_route_dashboard?
@@ -32,6 +38,10 @@ module Administrate
32
38
 
33
39
  private
34
40
 
41
+ def namespace
42
+ options[:namespace]
43
+ end
44
+
35
45
  def dashboard_resources
36
46
  valid_dashboard_models.map do |model|
37
47
  model.to_s.pluralize.underscore
@@ -1,4 +1,4 @@
1
- namespace :admin do
1
+ namespace :<%= namespace %> do
2
2
  <% dashboard_resources.each do |resource| %> resources :<%= resource %>
3
3
  <%end%>
4
4
  root to: "<%= dashboard_resources.first %>#index"
@@ -14,15 +14,29 @@ module Administrate
14
14
  source_root template_source_path
15
15
 
16
16
  def copy_partials
17
- copy_field_partial(:index)
18
- copy_field_partial(:show)
19
- copy_field_partial(:form)
17
+ resource_path = args.first.try(:underscore)
18
+
19
+ if resource_path == "all"
20
+ entries = Dir.entries(self.class.template_source_path)
21
+ field_types = entries.reject { |name| name[0] == "." }
22
+
23
+ field_types.each do |field_type|
24
+ copy_field_partials(field_type)
25
+ end
26
+ else
27
+ copy_field_partials(resource_path)
28
+ end
20
29
  end
21
30
 
22
31
  private
23
32
 
24
- def copy_field_partial(partial_name)
25
- resource_path = args.first.try(:underscore)
33
+ def copy_field_partials(resource_path)
34
+ copy_field_partial(resource_path, :index)
35
+ copy_field_partial(resource_path, :show)
36
+ copy_field_partial(resource_path, :form)
37
+ end
38
+
39
+ def copy_field_partial(resource_path, partial_name)
26
40
  template_file = "#{resource_path}/_#{partial_name}.html.erb"
27
41
 
28
42
  copy_file(
@@ -16,6 +16,7 @@ module Administrate
16
16
  copy_resource_template("_stylesheet")
17
17
  copy_resource_template("_javascript")
18
18
  copy_resource_template("_flashes")
19
+ copy_resource_template("_icons")
19
20
  end
20
21
  end
21
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Charlton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-07-14 00:00:00.000000000 Z
12
+ date: 2019-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -18,9 +18,6 @@ dependencies:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '4.2'
21
- - - "<"
22
- - !ruby/object:Gem::Version
23
- version: '5.2'
24
21
  type: :runtime
25
22
  prerelease: false
26
23
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,9 +25,6 @@ dependencies:
28
25
  - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: '4.2'
31
- - - "<"
32
- - !ruby/object:Gem::Version
33
- version: '5.2'
34
28
  - !ruby/object:Gem::Dependency
35
29
  name: actionview
36
30
  requirement: !ruby/object:Gem::Requirement
@@ -38,9 +32,6 @@ dependencies:
38
32
  - - ">="
39
33
  - !ruby/object:Gem::Version
40
34
  version: '4.2'
41
- - - "<"
42
- - !ruby/object:Gem::Version
43
- version: '5.2'
44
35
  type: :runtime
45
36
  prerelease: false
46
37
  version_requirements: !ruby/object:Gem::Requirement
@@ -48,9 +39,6 @@ dependencies:
48
39
  - - ">="
49
40
  - !ruby/object:Gem::Version
50
41
  version: '4.2'
51
- - - "<"
52
- - !ruby/object:Gem::Version
53
- version: '5.2'
54
42
  - !ruby/object:Gem::Dependency
55
43
  name: activerecord
56
44
  requirement: !ruby/object:Gem::Requirement
@@ -58,9 +46,6 @@ dependencies:
58
46
  - - ">="
59
47
  - !ruby/object:Gem::Version
60
48
  version: '4.2'
61
- - - "<"
62
- - !ruby/object:Gem::Version
63
- version: '5.2'
64
49
  type: :runtime
65
50
  prerelease: false
66
51
  version_requirements: !ruby/object:Gem::Requirement
@@ -68,9 +53,6 @@ dependencies:
68
53
  - - ">="
69
54
  - !ruby/object:Gem::Version
70
55
  version: '4.2'
71
- - - "<"
72
- - !ruby/object:Gem::Version
73
- version: '5.2'
74
56
  - !ruby/object:Gem::Dependency
75
57
  name: autoprefixer-rails
76
58
  requirement: !ruby/object:Gem::Requirement
@@ -142,19 +124,19 @@ dependencies:
142
124
  - !ruby/object:Gem::Version
143
125
  version: '2.8'
144
126
  - !ruby/object:Gem::Dependency
145
- name: sass-rails
127
+ name: sassc-rails
146
128
  requirement: !ruby/object:Gem::Requirement
147
129
  requirements:
148
130
  - - "~>"
149
131
  - !ruby/object:Gem::Version
150
- version: '5.0'
132
+ version: '2.1'
151
133
  type: :runtime
152
134
  prerelease: false
153
135
  version_requirements: !ruby/object:Gem::Requirement
154
136
  requirements:
155
137
  - - "~>"
156
138
  - !ruby/object:Gem::Version
157
- version: '5.0'
139
+ version: '2.1'
158
140
  - !ruby/object:Gem::Dependency
159
141
  name: selectize-rails
160
142
  requirement: !ruby/object:Gem::Requirement
@@ -169,6 +151,20 @@ dependencies:
169
151
  - - "~>"
170
152
  - !ruby/object:Gem::Version
171
153
  version: '0.6'
154
+ - !ruby/object:Gem::Dependency
155
+ name: rspec-rails
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
172
168
  description: |
173
169
  Administrate is heavily inspired by projects like Rails Admin and ActiveAdmin,
174
170
  but aims to provide a better user experience for site admins,
@@ -218,11 +214,12 @@ files:
218
214
  - app/assets/stylesheets/administrate/utilities/_text-color.scss
219
215
  - app/assets/stylesheets/docs.scss
220
216
  - app/controllers/administrate/application_controller.rb
217
+ - app/controllers/concerns/administrate/punditize.rb
221
218
  - app/helpers/administrate/application_helper.rb
222
219
  - app/views/administrate/application/_collection.html.erb
223
220
  - app/views/administrate/application/_flashes.html.erb
224
221
  - app/views/administrate/application/_form.html.erb
225
- - app/views/administrate/application/_icons.erb
222
+ - app/views/administrate/application/_icons.html.erb
226
223
  - app/views/administrate/application/_javascript.html.erb
227
224
  - app/views/administrate/application/_navigation.html.erb
228
225
  - app/views/administrate/application/_search.html.erb
@@ -252,6 +249,9 @@ files:
252
249
  - app/views/fields/number/_form.html.erb
253
250
  - app/views/fields/number/_index.html.erb
254
251
  - app/views/fields/number/_show.html.erb
252
+ - app/views/fields/password/_form.html.erb
253
+ - app/views/fields/password/_index.html.erb
254
+ - app/views/fields/password/_show.html.erb
255
255
  - app/views/fields/polymorphic/_form.html.erb
256
256
  - app/views/fields/polymorphic/_index.html.erb
257
257
  - app/views/fields/polymorphic/_show.html.erb
@@ -264,14 +264,24 @@ files:
264
264
  - app/views/fields/text/_form.html.erb
265
265
  - app/views/fields/text/_index.html.erb
266
266
  - app/views/fields/text/_show.html.erb
267
+ - app/views/fields/time/_form.html.erb
268
+ - app/views/fields/time/_index.html.erb
269
+ - app/views/fields/time/_show.html.erb
270
+ - app/views/fields/url/_form.html.erb
271
+ - app/views/fields/url/_index.html.erb
272
+ - app/views/fields/url/_show.html.erb
267
273
  - app/views/layouts/administrate/application.html.erb
268
274
  - config/i18n-tasks.yml
275
+ - config/locales/administrate.al.yml
269
276
  - config/locales/administrate.ar.yml
277
+ - config/locales/administrate.bs.yml
278
+ - config/locales/administrate.ca.yml
270
279
  - config/locales/administrate.da.yml
271
280
  - config/locales/administrate.de.yml
272
281
  - config/locales/administrate.en.yml
273
282
  - config/locales/administrate.es.yml
274
283
  - config/locales/administrate.fr.yml
284
+ - config/locales/administrate.id.yml
275
285
  - config/locales/administrate.it.yml
276
286
  - config/locales/administrate.ja.yml
277
287
  - config/locales/administrate.ko.yml
@@ -286,15 +296,16 @@ files:
286
296
  - config/locales/administrate.zh-CN.yml
287
297
  - config/locales/administrate.zh-TW.yml
288
298
  - config/routes.rb
289
- - config/secrets.yml
290
299
  - config/unicorn.rb
291
300
  - docs/adding_custom_field_types.md
292
301
  - docs/authentication.md
302
+ - docs/authorization.md
293
303
  - docs/customizing_attribute_partials.md
294
304
  - docs/customizing_controller_actions.md
295
305
  - docs/customizing_dashboards.md
296
306
  - docs/customizing_page_views.md
297
307
  - docs/getting_started.md
308
+ - docs/rails_api.md
298
309
  - lib/administrate.rb
299
310
  - lib/administrate/base_dashboard.rb
300
311
  - lib/administrate/engine.rb
@@ -308,10 +319,13 @@ files:
308
319
  - lib/administrate/field/has_many.rb
309
320
  - lib/administrate/field/has_one.rb
310
321
  - lib/administrate/field/number.rb
322
+ - lib/administrate/field/password.rb
311
323
  - lib/administrate/field/polymorphic.rb
312
324
  - lib/administrate/field/select.rb
313
325
  - lib/administrate/field/string.rb
314
326
  - lib/administrate/field/text.rb
327
+ - lib/administrate/field/time.rb
328
+ - lib/administrate/field/url.rb
315
329
  - lib/administrate/generator_helpers.rb
316
330
  - lib/administrate/namespace.rb
317
331
  - lib/administrate/namespace/resource.rb
@@ -338,7 +352,7 @@ files:
338
352
  - lib/generators/administrate/field/templates/_show.html.erb
339
353
  - lib/generators/administrate/field/templates/field_object.rb.erb
340
354
  - lib/generators/administrate/install/install_generator.rb
341
- - lib/generators/administrate/install/templates/application_controller.rb
355
+ - lib/generators/administrate/install/templates/application_controller.rb.erb
342
356
  - lib/generators/administrate/routes/routes_generator.rb
343
357
  - lib/generators/administrate/routes/templates/routes.rb.erb
344
358
  - lib/generators/administrate/views/edit_generator.rb
@@ -370,8 +384,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
370
384
  - !ruby/object:Gem::Version
371
385
  version: '0'
372
386
  requirements: []
373
- rubyforge_project:
374
- rubygems_version: 2.6.11
387
+ rubygems_version: 3.0.3
375
388
  signing_key:
376
389
  specification_version: 4
377
390
  summary: A Rails engine for creating super-flexible admin dashboards
data/config/secrets.yml DELETED
@@ -1,14 +0,0 @@
1
- default: &default
2
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
3
-
4
- development:
5
- <<: *default
6
-
7
- test:
8
- <<: *default
9
-
10
- staging:
11
- <<: *default
12
-
13
- production:
14
- <<: *default