ecm_links2_backend 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -1
- data/app/assets/javascripts/ecm/links/backend/application/dummy.js +0 -0
- data/app/assets/stylesheets/ecm/links/backend/application/dummy.css +0 -0
- data/app/controllers/ecm/links/backend/categories_controller.rb +1 -1
- data/app/controllers/ecm/links/backend/links_controller.rb +1 -1
- data/app/policies/ecm/links/category_policy.rb +1 -1
- data/app/policies/ecm/links/link_policy.rb +1 -1
- data/lib/ecm/links/backend/configuration.rb +2 -2
- data/lib/ecm/links/backend/engine.rb +1 -1
- data/lib/ecm/links/backend/version.rb +1 -1
- data/lib/ecm_links2_backend.rb +2 -2
- data/lib/generators/ecm/links/backend/install/install_generator.rb +1 -1
- data/lib/generators/ecm/links/backend/install/templates/ecm_links_backend.rb +12 -10
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b09b3b6ac9d71d9ece468b7379bf97b62a37c49
|
4
|
+
data.tar.gz: 186787eb288df18209944c4f9c7ff71118e1d42c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeda376f7335c53077f69e4355bc4d3660bc40e5ccaab5b4390a3ed4f5ced9ab145d85234b62d55624317f48beac61b9f7043e72f99feb7f5a08b78d8f5e4caa
|
7
|
+
data.tar.gz: 0fb0ca3a37bac21e09c0ff43bec5b60d527c524a87343563db4ce4e8fa40184f8bb6a0b0933a68d53857a5ce8b5be730e0df7b21e8704f2d15ea92d09eda8ab8
|
data/Rakefile
CHANGED
File without changes
|
File without changes
|
@@ -8,6 +8,6 @@ class Ecm::Links::Backend::CategoriesController < Itsf::Backend::Resource::BaseC
|
|
8
8
|
def permitted_params
|
9
9
|
params
|
10
10
|
.require(:ecm_links_category)
|
11
|
-
|
11
|
+
.permit(:parent_id, :locale, :name, :markup_language, :short_description, :long_description, :link_footer_column)
|
12
12
|
end
|
13
13
|
end
|
@@ -12,6 +12,6 @@ class Ecm::Links::Backend::LinksController < Itsf::Backend::Resource::BaseContro
|
|
12
12
|
def permitted_params
|
13
13
|
params
|
14
14
|
.require(:ecm_links_link)
|
15
|
-
|
15
|
+
.permit(:ecm_links_category_id, :name, :url, :markup_language, :description)
|
16
16
|
end
|
17
17
|
end
|
@@ -4,7 +4,7 @@ module Ecm
|
|
4
4
|
class Engine < ::Rails::Engine
|
5
5
|
isolate_namespace Ecm::Links::Backend
|
6
6
|
|
7
|
-
initializer
|
7
|
+
initializer 'ecm_links_backend.asset_pipeline' do |app|
|
8
8
|
app.config.assets.precompile << 'ecm_links_backend.js'
|
9
9
|
app.config.assets.precompile << 'ecm_links_backend.css'
|
10
10
|
end
|
data/lib/ecm_links2_backend.rb
CHANGED
@@ -1,22 +1,24 @@
|
|
1
|
-
Ecm::Links::Backend.configure do |config|
|
1
|
+
Ecm::Links::Backend.configure do |config|
|
2
2
|
# Set the resources, that will be shown in the backend menu in development
|
3
3
|
# mode. This needs to be set to get a correct menu because
|
4
4
|
# Controller.descendants is empty in development. This is an eager load
|
5
5
|
# issue.
|
6
|
-
#
|
6
|
+
#
|
7
7
|
# Default: config.registered_controllers = -> {[
|
8
8
|
# Ecm::Links::Backend::CategoriesController,
|
9
9
|
# Ecm::Links::Backend::LinksController
|
10
10
|
# ]}
|
11
|
-
#
|
12
|
-
config.registered_controllers =
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
#
|
12
|
+
config.registered_controllers = lambda {
|
13
|
+
[
|
14
|
+
Ecm::Links::Backend::CategoriesController,
|
15
|
+
Ecm::Links::Backend::LinksController
|
16
|
+
]
|
17
|
+
}
|
16
18
|
|
17
19
|
# Set the services, that will be shown in the backend menu.
|
18
20
|
#
|
19
21
|
# Default: config.registered_services = -> {[]}
|
20
|
-
#
|
21
|
-
config.registered_services = -> {[]}
|
22
|
-
end
|
22
|
+
#
|
23
|
+
config.registered_services = -> { [] }
|
24
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_links2_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
@@ -203,8 +203,10 @@ files:
|
|
203
203
|
- README.rdoc
|
204
204
|
- Rakefile
|
205
205
|
- app/assets/javascripts/ecm/links/backend/application.js
|
206
|
+
- app/assets/javascripts/ecm/links/backend/application/dummy.js
|
206
207
|
- app/assets/javascripts/ecm_links_backend.js
|
207
208
|
- app/assets/stylesheets/ecm/links/backend/application.css
|
209
|
+
- app/assets/stylesheets/ecm/links/backend/application/dummy.css
|
208
210
|
- app/assets/stylesheets/ecm_links_backend.css
|
209
211
|
- app/controllers/ecm/links/backend/application_controller.rb
|
210
212
|
- app/controllers/ecm/links/backend/categories_controller.rb
|