express_admin 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9794455e9094a4bd67e8dc11714350158b88506
|
4
|
+
data.tar.gz: e096d162d6912e9a99562da6617e70ba9bcd761b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e2b9653a4405e1810ffe3a1ce13d4ffb412958c5612101394fd904ee7c0007fd15542fb85483c736cafb02bec44269089753785c9c56d2d5044bd2b0ff5ed38
|
7
|
+
data.tar.gz: 39deb4fc98723c381e2459a1f1697193a803c4db6d17aac8785b533907a4d88b0a6ea7062bff698c1ffa339ca97d5a94a52433a9bac21c86dc0d0d33d0eff392
|
@@ -32,15 +32,13 @@ module ExpressAdmin
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def create_application_js
|
35
|
-
empty_directory("app/assets/javascripts/#{@project_name}/admin")
|
36
35
|
template 'assets/javascripts/application.js',
|
37
|
-
File.join('app/assets/javascripts', @project_name, 'admin
|
36
|
+
File.join('app/assets/javascripts', @project_name, 'admin.js')
|
38
37
|
end
|
39
38
|
|
40
39
|
def create_application_css
|
41
|
-
empty_directory("app/assets/stylesheets/#{@project_name}/admin")
|
42
40
|
template 'assets/stylesheets/application.css',
|
43
|
-
File.join('app/assets/stylesheets', @project_name, 'admin
|
41
|
+
File.join('app/assets/stylesheets', @project_name, 'admin.css')
|
44
42
|
end
|
45
43
|
|
46
44
|
def insert_mount_point
|
@@ -51,6 +49,12 @@ module ExpressAdmin
|
|
51
49
|
" #{@project_class}::Engine.config.#{@project_name}_mount_point = '/'\n",
|
52
50
|
after: "class Engine < ::Rails::Engine\n"
|
53
51
|
end
|
52
|
+
|
53
|
+
empty_directory File.join('config', 'initializers')
|
54
|
+
if File.exists?(engine_path)
|
55
|
+
create_file File.join('config', 'initializers', "mount_engine.rb"),
|
56
|
+
"ExpressAdmin::Routes.register do |routes|\n routes.mount #{@project_class}::Engine, at: #{@project_class}::Engine.config.#{@project_name}_mount_point\nend\n"
|
57
|
+
end
|
54
58
|
end
|
55
59
|
|
56
60
|
def require_express_admin
|