caboose-cms 0.5.179 → 0.5.180

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTg4ZjU1ZDE1NmM0Y2Q0OTdmMDhmOTRjODIzMjQ1MGU0ZDE4MWYwNQ==
4
+ MzkxMDQwNTU4NjM2ODY0MGUwNzMxZDhiNzVlMDEwZDEyNDM0NjU4Yw==
5
5
  data.tar.gz: !binary |-
6
- ZGYyZWMxODBlZmJlMTZiNjI4NDZkM2RlZWRiZTExZmMwZjZjZmQ0OA==
6
+ MzhiYTRkOTJkY2NiOTlhYmU1NmJiNGNkNmE2M2U0ZjI4YTY5MTRkNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2Y0NWVkMzYyZmRiMDI1ZTYyNDgwN2EzNzI1NDc5YWYyYmQwYzAwMmEzYjg5
10
- OWVhMDFlYzE2Y2QwNDViMTlmMWJjN2IzNDY4YjZkMjRhZjFhZTA3OWZlZThh
11
- YjYwM2YwZjA5ZTA2NTQ0MGI1N2VhMDNiMzY4OWQ5NDU5Mzg4OTQ=
9
+ YjgyNWY5NzdjNzU1NzliYTQyNmE2OWY5ZGY2NzdkMWM4ZGQ0Yzk2YWVkYWI3
10
+ NmFkZmY2ZTBmZGIzMGRmNmE2ZTAzNGU5ODM1NTM5YjhhYjc3NTZjMjE4MmU3
11
+ YzgzMGVhMDZlMDBjNjk0Yjc2M2Y5NzYwNjA1NTVkZmY5YmUwMTY=
12
12
  data.tar.gz: !binary |-
13
- ZTJiNjYzMDlmMjEwMTY1NGRiOGRiMTA0NDZlNGU1MGY4YmRhODMzZTM3NWU5
14
- YWYwZmFhZDE1ZjkzMzYwMGVlOTZiMWUwMjJmZmRhMWViN2Q4Yzg5MjAwZTZm
15
- OTVhZmM1ZDdmMDJjNTRiZTQyMzhjNTZhMWM4Nzg0YmVhMjZmYzY=
13
+ ZmExMzQ0NzA1ZmFjODY3NWJjMDRlYzc2MWExMzMyOGI5OGJmMjE1YjRkYmUy
14
+ MWMzYjJiMDdkMDU0MGY2NWI5MGJmNzhkYmJjZmUzNjg1YWU4ZTYyNjEyODI0
15
+ OGUxZDc2MGNmZDk2YTUzNDJjOTFkMTZjMDZhYmRiN2Q3MWY3OWU=
@@ -26,16 +26,16 @@ module Caboose
26
26
  end
27
27
  return
28
28
  # See if we're on a forwarding domain
29
- #elsif !d.primary && d.forward_to_primary
30
- # pd = d.site.primary_domain
31
- # if pd
32
- # url = "#{request.protocol}#{pd.domain}"
33
- # if request.fullpath && request.fullpath.strip.length > 0 && request.fullpath.strip != '/'
34
- # url << request.fullpath
35
- # end
36
- # redirect_to url
37
- # return
38
- # end
29
+ elsif d.primary == false && d.forward_to_primary == true
30
+ pd = d.site.primary_domain
31
+ if pd
32
+ url = "#{request.protocol}#{pd.domain}"
33
+ if request.fullpath && request.fullpath.strip.length > 0 && request.fullpath.strip != '/'
34
+ url << request.fullpath
35
+ end
36
+ redirect_to url
37
+ return
38
+ end
39
39
  end
40
40
 
41
41
  if !page
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.179'
2
+ VERSION = '0.5.180'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.179
4
+ version: 0.5.180
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry