morse_controller_helpers 0.1.9 → 0.1.10

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: 7b61a0cc8af03c7eb26a097941f2ee76f71ab2c9
4
- data.tar.gz: c6420afe85fe8bc63cd73c93cb126720c3f133a2
3
+ metadata.gz: 2c71cb983806abd4be828af94e23eeb90df5d0e6
4
+ data.tar.gz: 1647e769fd0582af2934596f0c71ab80ebb41cec
5
5
  SHA512:
6
- metadata.gz: ef0996ff091dcb82739edba5830bbf61cbabdf0e8d5b4bc24890481ccec3c424178cbfb542bcf5b62242470afd4e46fe049ba06fad0f34de010c0c3742fa48e4
7
- data.tar.gz: 01617f73a08ac72304804b15bb1dfd9ae2e1b6e6f0c9ed91799c681755bbccf892a5bb0fceb60ece352ff0e686c4b4a9dd8e681bbd8d3ee740bb3cb4199d3d9c
6
+ metadata.gz: e27568c2d434a4990c6cf1ed9588be881c8f5e50d4bf6520aa9e2d7bac173c9d9b8f158341751f0189b86f9516edd1bfe90f607909f0eb7408c1a89aa9a6acd0
7
+ data.tar.gz: 96b86b8e8d86b3d16c0dae8006eb64a0f45e07ad85276f99fab11ad6e047170f6659967119863e03b494fd20a073d150bf6a9ac3b57f3fb65d4a355831d03601
@@ -1,3 +1,3 @@
1
1
  module MorseControllerHelpers
2
- VERSION = '0.1.9'.freeze
2
+ VERSION = '0.1.10'.freeze
3
3
  end
@@ -79,7 +79,7 @@ module MorseControllerHelpers
79
79
  end
80
80
 
81
81
  def path_edit(cp = current_instance)
82
- [path_prefix, path_show(cp).unshift(:edit)].compact
82
+ [:edit, path_prefix, cp].compact
83
83
  end
84
84
 
85
85
  def path_index
@@ -87,13 +87,18 @@ module MorseControllerHelpers
87
87
  end
88
88
 
89
89
  def path_new
90
- [path_prefix, :new, resource_symbol].compact
90
+ [:new, path_prefix, resource_symbol].compact
91
91
  end
92
92
 
93
93
  def path_prefix
94
94
  nil
95
95
  end
96
96
 
97
+ def path_prefix_symbol
98
+ return nil unless path_prefix
99
+ path_prefix.to_sym
100
+ end
101
+
97
102
  def path_show(instance = current_instance)
98
103
  [path_prefix, instance].compact
99
104
  end
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morse_controller_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry S
@@ -133,6 +133,8 @@ files:
133
133
  - lib/morse_controller_helpers/flash_helpers.rb
134
134
  - lib/morse_controller_helpers/version.rb
135
135
  - morse_controller_helpers-0.1.4.gem
136
+ - morse_controller_helpers-0.1.7.gem
137
+ - morse_controller_helpers-0.1.8.gem
136
138
  - morse_controller_helpers.gemspec
137
139
  - tags
138
140
  homepage: https://github.com/morsedigital/morse_controller_helpers