standard_view 0.1.20 → 0.1.22

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10e35b0bca3a3349a32ed0baf8c4945112e1c428c15ebab4de10c19ae155b8d6
4
- data.tar.gz: de491886fcc491906214234806a059ebcdccefb49722638d98dd404539cc8656
3
+ metadata.gz: cc8f13deac9fbb13889308df27fca21bf4ff785d45088576e3693ebff1192074
4
+ data.tar.gz: 5faa9f3a0525608c91dfe19bfa20999359ac5285d4bd97a452e453ba2508daaa
5
5
  SHA512:
6
- metadata.gz: 9d90b9971fad67bb5d5d5d3442bade1ec5f06eb9d2fa40b49640469314c652ac9025e7d25d0c7320aa9b8b9d46e922dbd5c151ebbcbed1c57ae565479f9439f5
7
- data.tar.gz: 38e34d89913dba85daa3e786fb65f95911d16e5bcc49c124a2b8e254bb06b333cc7394383d13d14832fb7ed8e98aa34d4fa96eb5fd53cc10afec226c3f0c56d2
6
+ metadata.gz: bce08e3551ab7ea5eb7a27ea3ccf6ed308c003559300dedc2183e08421602e1352cb3b62c1dd368e1a7cf790fced47094d7328b0122d73c5fe2a822e8ec24032
7
+ data.tar.gz: 162768304b1df961b2da243e5f7b4ee4d98d9903c327b8b9c2338140e8c6dac3339b473e53702e0966aae991380ca70dd568f2e673f29efd6ffc594c4e1ddf61
@@ -23,8 +23,8 @@ module StandardView
23
23
  link_target = [ record.to_sym, collection.to_sym ]
24
24
  link_target.reverse! if nested
25
25
 
26
- active_link_arguments = { controller: (nested ? model : record).model_name.collection }
27
- active_link_arguments[:action] = collection unless nested
26
+ active_link_arguments = { controller: (nested ? record : model).model_name.collection }
27
+ active_link_arguments[:action] = collection if nested
28
28
 
29
29
  nav_item(
30
30
  link_target: link_target,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StandardView
4
- VERSION = "0.1.20"
4
+ VERSION = "0.1.22"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard_view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Garside