trusty-cms 5.3.7 → 5.3.8

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
  SHA256:
3
- metadata.gz: 142ffda692fc907a04f59cd6a31d30e2e9397d8518161987a072ffa880cbdd98
4
- data.tar.gz: 54337c586f8569888abcbb0ebf0a3d947eb3401f552eb5e85e583ac4f3f84a03
3
+ metadata.gz: 55db1d184c2ccb4965bb5a019dc926f0504b4fcc351ab4e98342704ca47937b9
4
+ data.tar.gz: cca0fa123755daeadd7244551347e2453e3c59348b678cb9f61f52e7949af9ce
5
5
  SHA512:
6
- metadata.gz: d0bd0157187af0c940538b8cac85623e76e50179c37f71a6aaad9cabda20abdd9a310c43a883301880991c1c599a13447a5d6bf2c0d52fac4ee4a7eee4c24554
7
- data.tar.gz: 93614fe90f4abee174d3495decb4bc671ecc86f422dfc2b0e6b7696ddd955fdbb8086cf2dcc83a71e3eb706e88f24800964135983743dbd349ae7391cbd11a7f
6
+ metadata.gz: 535bc336f0363355e34867128765e4e6f078f47970372f630228e27e30d72e88f4e7223c11a2e46d4182031075369b5a572154ec4a998b36b2b57f467082e0d3
7
+ data.tar.gz: 6dc46d99464d7d31a7702a978a3c50457393752e0ac112a208e0f6a7e5247d7bb4c0e90ab43c8e6717efe1365d7150783ea0ed72819c4d81396766c4f9682a72
@@ -2,7 +2,7 @@ class RailsPage < Page
2
2
  display_name 'Application'
3
3
  attr_accessor :breadcrumbs
4
4
 
5
- def find_by_url(url, live = true, clean = true)
5
+ def find_by_path(url, live = true, clean = true)
6
6
  found_page = super
7
7
  if found_page.nil? || found_page.is_a?(FileNotFoundPage)
8
8
  url = clean_url(url) if clean
data/lib/trusty_cms.rb CHANGED
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = '5.3.7'.freeze
5
+ VERSION = '5.3.8'.freeze
6
6
  end
7
7
  end
@@ -36,7 +36,7 @@ module ShareLayouts
36
36
  end
37
37
 
38
38
  def find_page
39
- page = Page.find_by_url(request.path) rescue nil
39
+ page = Page.find_by_path(request.path) rescue nil
40
40
  page.is_a?(RailsPage) ? page : RailsPage.new(:class_name => "RailsPage")
41
41
  end
42
42
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.7
4
+ version: 5.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrustyCms CMS dev team