effective_pages 1.1.1 → 1.1.2

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: ba132a8e040a61087a5fa782a1568d5cfeece1d1
4
- data.tar.gz: 207faa7553505f9131e8d7fdae1f5820b46ab86f
3
+ metadata.gz: cb3150222d696ba34d6730dbb508ad3c275576c5
4
+ data.tar.gz: 53ff53ecdd6b9509730bb2d39caed59c14ec1f7e
5
5
  SHA512:
6
- metadata.gz: 8049254713603cd2c4a71e48ae3ea5a2fa52487940f5b5c38561506d04a849f4a9bb192c1130c4fe680cc30dc71bc7370f82386612c972b92776704f20b9a982
7
- data.tar.gz: 4f66f35feebb7fe492bbc7a32767b4791340099384591ed88a202471f029ce3f28afb816b43cb5adf544b4c79746bffcc37e5a60b9a95d6f605b09ffaff1b6eb
6
+ metadata.gz: cefaab3e63906996e5d16307d656711d8cf7249a934026588d071abcd7a44f81c481ab999de76ee1b39705d5610af0677746f2a3160946962e5890453d0e385b
7
+ data.tar.gz: 1499a98f2c42d5eed1201e28efdd30e0531a6d0e3a62caae6c7833942dc11bcfd5ef3d9ded26a4fc769740fee58cef5f5d193381a9c5f955a4b28c69c241a4bd
@@ -8,6 +8,9 @@ module EffectiveBreadcrumbsHelper
8
8
  menu_item = if page.kind_of?(Effective::Page)
9
9
  url = effective_pages.page_path(page)
10
10
  menu.menu_items.find { |item| item.menuable == page || item.title == page.title || item.url == url }
11
+ elsif page.kind_of?(String)
12
+ downcased = page.downcase
13
+ menu.menu_items.find { |item| item.title.downcase == downcased || item.url == downcased }
11
14
  else
12
15
  menu.menu_items.find { |item| item.menuable == page || item.title == page || item.url == page }
13
16
  end
@@ -4,7 +4,7 @@
4
4
  .row.effective-admin-actions
5
5
  .col-sm-6
6
6
  %p
7
- To edit the main menu, drag and drop items from the fullscreen editor.
7
+ All menu editing may be done from the fullscreen editor. Just drag and drop menu items.
8
8
  .col-sm-6
9
9
  %p.text-right
10
10
  = link_to "Edit #{@menu}", effective_regions.edit_path('/'), class: 'btn btn-primary', 'data-no-turbolink': true, target: '_blank'
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-08 00:00:00.000000000 Z
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails