morse_controller_helpers 0.1.0 → 0.1.9

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: 46e15d41e62743c79fda03351a2bbf02e9f88ad9
4
- data.tar.gz: 928b786bbbce2589184e64d6d88468c43313bfde
3
+ metadata.gz: 7b61a0cc8af03c7eb26a097941f2ee76f71ab2c9
4
+ data.tar.gz: c6420afe85fe8bc63cd73c93cb126720c3f133a2
5
5
  SHA512:
6
- metadata.gz: f46bb96751f27acc672230bcb8967a7db7762aeb7a831223b8344070824b01e5764438ab263f21fc301a4241cda802584c4144cc7370de89f5339fa2c2b0840a
7
- data.tar.gz: fa52650448facaf49c89b11adc9d8fe1c207e2fbbbeeb3ec40c0d3b9e723e184b59a7966bb646ab85d0a15fc4228fffd35badbe7a9e0c5c1f77055913087f55b
6
+ metadata.gz: ef0996ff091dcb82739edba5830bbf61cbabdf0e8d5b4bc24890481ccec3c424178cbfb542bcf5b62242470afd4e46fe049ba06fad0f34de010c0c3742fa48e4
7
+ data.tar.gz: 01617f73a08ac72304804b15bb1dfd9ae2e1b6e6f0c9ed91799c681755bbccf892a5bb0fceb60ece352ff0e686c4b4a9dd8e681bbd8d3ee740bb3cb4199d3d9c
@@ -34,7 +34,7 @@ module MorseControllerHelpers
34
34
  def update
35
35
  if current_instance.update_attributes(params_resource)
36
36
  flash_update_yes
37
- redirect_to path_edit
37
+ redirect_to path_edit(current_instance)
38
38
  else
39
39
  flash_update_no
40
40
  render("#{resource_symbols}/edit")
@@ -1,3 +1,3 @@
1
1
  module MorseControllerHelpers
2
- VERSION = "0.1.0"
2
+ VERSION = '0.1.9'.freeze
3
3
  end
@@ -79,19 +79,23 @@ module MorseControllerHelpers
79
79
  end
80
80
 
81
81
  def path_edit(cp = current_instance)
82
- path_show(cp).unshift(:edit)
82
+ [path_prefix, path_show(cp).unshift(:edit)].compact
83
83
  end
84
84
 
85
85
  def path_index
86
- [resource_symbols]
86
+ [path_prefix, resource_symbols].compact
87
87
  end
88
88
 
89
89
  def path_new
90
- [:new, resource_symbol]
90
+ [path_prefix, :new, resource_symbol].compact
91
+ end
92
+
93
+ def path_prefix
94
+ nil
91
95
  end
92
96
 
93
97
  def path_show(instance = current_instance)
94
- [instance]
98
+ [path_prefix, instance].compact
95
99
  end
96
100
 
97
101
  def resource_symbol
Binary file
@@ -6,8 +6,8 @@ require 'morse_controller_helpers/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "morse_controller_helpers"
8
8
  spec.version = MorseControllerHelpers::VERSION
9
- spec.authors = ["Terry S"]
10
- spec.email = ["itsterry@gmail.com"]
9
+ spec.authors = ["Terry S",'Mark Mekhaeil']
10
+ spec.email = ["itsterry@gmail.com",'mark@morsedigital.com']
11
11
 
12
12
  spec.summary = %q{Morse Controller Helpers}
13
13
  spec.description = %q{Morse Controller Helpers}
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morse_controller_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry S
8
+ - Mark Mekhaeil
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
11
- date: 2017-03-08 00:00:00.000000000 Z
12
+ date: 2017-03-14 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
@@ -111,6 +112,7 @@ dependencies:
111
112
  description: Morse Controller Helpers
112
113
  email:
113
114
  - itsterry@gmail.com
115
+ - mark@morsedigital.com
114
116
  executables: []
115
117
  extensions: []
116
118
  extra_rdoc_files: []
@@ -130,6 +132,7 @@ files:
130
132
  - lib/morse_controller_helpers/crud_helpers.rb
131
133
  - lib/morse_controller_helpers/flash_helpers.rb
132
134
  - lib/morse_controller_helpers/version.rb
135
+ - morse_controller_helpers-0.1.4.gem
133
136
  - morse_controller_helpers.gemspec
134
137
  - tags
135
138
  homepage: https://github.com/morsedigital/morse_controller_helpers
@@ -152,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
155
  version: '0'
153
156
  requirements: []
154
157
  rubyforge_project:
155
- rubygems_version: 2.6.8
158
+ rubygems_version: 2.6.10
156
159
  signing_key:
157
160
  specification_version: 4
158
161
  summary: Morse Controller Helpers