rich_table_component 0.0.18 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -94,7 +94,9 @@ module MenusHelper
94
94
  elsif !controller_name.eql?('home')
95
95
  results << t("#{controller_name.singularize}")
96
96
  end
97
- render 'rich_table_component/component/breadcrumbs', breadcrumbs: results, limit: limit
97
+ result = (render 'rich_table_component/component/breadcrumbs', breadcrumbs: results, limit: limit)
98
+ @parent_resources = nil
99
+ result
98
100
  end
99
101
 
100
102
 
@@ -1,4 +1,10 @@
1
1
  = breadcrumb[:current]
2
+ - puts '###############################'
3
+ - puts breadcrumb[:parent_object].nil?
4
+ - puts breadcrumb[:parent_object].present?
5
+ - puts breadcrumb[:parent_object].class.name
6
+ - puts breadcrumb[:resource]
7
+ - puts '###############################'
2
8
  %ul.dropdown-menu
3
9
  - if breadcrumb[:parent_object].present?
4
10
  - if breadcrumb[:parent_object].respond_to?(breadcrumb[:resource])
@@ -10,8 +10,9 @@
10
10
  - # Check attribute type, then breakdown att
11
11
  - case att
12
12
  - when Hash
13
- - att_params = att[:params]
14
- - att = att[:input]
13
+ - if att[:params].present?
14
+ - att_params = att[:params]
15
+ - att = att[:input]
15
16
 
16
17
  - attribute = att.to_s
17
18
  - range = true
@@ -6,8 +6,9 @@
6
6
  - # Check attribute type, then breakdown att
7
7
  - case att
8
8
  - when Hash
9
- - att_params = att[:params]
10
- - att = att[:input]
9
+ - if att[:params].present?
10
+ - att_params = att[:params]
11
+ - att = att[:input]
11
12
 
12
13
  - attribute = att.to_s
13
14
  - range = true
@@ -1,3 +1,3 @@
1
1
  module RichTableComponent
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.21"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rich_table_component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-11 00:00:00.000000000 Z
12
+ date: 2013-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass-rails