rocket_cms 0.8.0.pre.4 → 0.8.0.pre.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/controllers/concerns/rs_errors.rb +1 -1
- data/app/controllers/concerns/rs_menu.rb +6 -1
- data/app/controllers/concerns/rs_pages.rb +0 -1
- data/lib/rocket_cms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0278478ead1955bacae88ab8696daad16896750f
|
4
|
+
data.tar.gz: 5ee8127a336c911cb3bd7795dcf8a617df8f4df6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79b618f2fb2044f1a60e53aaf6142b530f36c2007da57d7eea374f41da89d8a4a01667d8829f5de2e61654cdda4f4e2bd9a540e1f30342cd653413472931bd29
|
7
|
+
data.tar.gz: 72a873069c40e607a0f49a9e0b5508143c5bffbdaec6fd97ebf06388de8cafe02c96841235d1bb2b5ff4bf27f9ebb20b8b7064f80547bfddc2f54d4e2712d38b
|
data/Gemfile.lock
CHANGED
@@ -4,6 +4,7 @@ module RsMenu
|
|
4
4
|
helper_method :navigation
|
5
5
|
end
|
6
6
|
|
7
|
+
private
|
7
8
|
def render_with_subs(items, primary, item)
|
8
9
|
subs = items.select { |i| i.parent_id == item.id && !i.name.blank? && i.enabled }
|
9
10
|
if subs.empty?
|
@@ -31,7 +32,7 @@ module RsMenu
|
|
31
32
|
SimpleNavigation.config.autogenerate_item_ids = false
|
32
33
|
begin
|
33
34
|
nav_extra_data_before(type, primary)
|
34
|
-
items =
|
35
|
+
items = nav_get_menu_items(type)
|
35
36
|
items.select { |i| i.parent_id.nil? && !i.name.blank? && i.enabled }.each do |item|
|
36
37
|
render_with_subs(items, primary, item)
|
37
38
|
end
|
@@ -45,6 +46,10 @@ module RsMenu
|
|
45
46
|
end
|
46
47
|
end
|
47
48
|
|
49
|
+
def nav_get_menu_items(type)
|
50
|
+
::Menu.find(type.to_s).pages.enabled.sorted.to_a
|
51
|
+
end
|
52
|
+
|
48
53
|
def nav_extra_data_before(type, primary)
|
49
54
|
# override for additional config or items
|
50
55
|
end
|
data/lib/rocket_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocket_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.0.pre.
|
4
|
+
version: 0.8.0.pre.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|