|
5 | 5 | config.comments_menu = { parent: 'Administrative' }
|
6 | 6 | RUBY
|
7 | 7 |
|
8 |
| -inject_into_file 'app/admin/admin_user.rb', <<-RUBY, after: "ActiveAdmin.register AdminUser do\n" |
| 8 | +inject_into_file 'app/admin/admin_users.rb', <<-RUBY, after: "ActiveAdmin.register AdminUser do\n" |
9 | 9 |
|
10 | 10 | menu parent: "Administrative", priority: 1
|
11 | 11 | RUBY
|
|
80 | 80 | generate :'active_admin:resource', type
|
81 | 81 | end
|
82 | 82 |
|
83 |
| -inject_into_file 'app/admin/category.rb', <<-RUBY, after: "ActiveAdmin.register Category do\n" |
| 83 | +inject_into_file 'app/admin/categories.rb', <<-RUBY, after: "ActiveAdmin.register Category do\n" |
84 | 84 |
|
85 | 85 | config.create_another = true
|
86 | 86 |
|
87 | 87 | permit_params [:name, :description]
|
88 | 88 | RUBY
|
89 | 89 |
|
90 |
| -inject_into_file 'app/admin/user.rb', <<-RUBY, after: "ActiveAdmin.register User do\n" |
| 90 | +inject_into_file 'app/admin/users.rb', <<-RUBY, after: "ActiveAdmin.register User do\n" |
91 | 91 |
|
92 | 92 | config.create_another = true
|
93 | 93 |
|
|
135 | 135 | end
|
136 | 136 | RUBY
|
137 | 137 |
|
138 |
| -inject_into_file 'app/admin/post.rb', <<-'RUBY', after: "ActiveAdmin.register Post do\n" |
| 138 | +inject_into_file 'app/admin/posts.rb', <<-'RUBY', after: "ActiveAdmin.register Post do\n" |
139 | 139 |
|
140 | 140 | permit_params :custom_category_id, :author_id, :title, :body, :published_date, :position, :starred, taggings_attributes: [ :id, :tag_id, :name, :position, :_destroy ]
|
141 | 141 |
|
|
269 | 269 | end
|
270 | 270 | RUBY
|
271 | 271 |
|
272 |
| -inject_into_file 'app/admin/tag.rb', <<-RUBY, after: "ActiveAdmin.register Tag do\n" |
| 272 | +inject_into_file 'app/admin/tags.rb', <<-RUBY, after: "ActiveAdmin.register Tag do\n" |
273 | 273 |
|
274 | 274 | config.create_another = true
|
275 | 275 |
|
|
0 commit comments