caboose-cms 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/caboose/application_controller.rb +5 -4
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cabbe7518c75a074f2ce3c8dfc4cf4f9e1ed349
|
4
|
+
data.tar.gz: bf108c32cd8e7fb629f3d4fa046a2d9dcff9f8e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 472eaae0630a52bf0ec2e2c90f4d242c4afa71d545f549c60a7e69ca1bb7c464d7a37fed88db71ec38d4e5012f6998ca76ae83ad2761bbe22f8ed141d3e19bbb
|
7
|
+
data.tar.gz: 4a17b18fe6b3a5e48bb0b81112f018bbc6a1db4c8cced97e863ccbd1c153c86b8980ea79df1033264b2803bb812015f07577c835872bdb817969e72ad66d1d68
|
@@ -8,15 +8,16 @@ module Caboose
|
|
8
8
|
|
9
9
|
@find_page = true
|
10
10
|
|
11
|
-
def before_before_action
|
11
|
+
def before_before_action
|
12
|
+
|
12
13
|
# Modify the built-in params array with URL params if necessary
|
13
14
|
parse_url_params if Caboose.use_url_params
|
14
15
|
|
15
16
|
@use_page_cache = !request.fullpath.starts_with?('/admin')
|
16
17
|
|
17
18
|
# Get the site we're working with
|
18
|
-
domain = Domain.where(:domain => request.host_with_port).first
|
19
|
-
@site = domain ? domain.site : nil
|
19
|
+
@domain = Domain.where(:domain => request.host_with_port).first
|
20
|
+
@site = @domain ? @domain.site : nil
|
20
21
|
|
21
22
|
# Set the site in any mailers
|
22
23
|
CabooseMailer.site = @site
|
@@ -52,7 +53,7 @@ module Caboose
|
|
52
53
|
@logged_in_user = logged_in_user
|
53
54
|
|
54
55
|
# Initialize the card
|
55
|
-
init_cart if @site && @site.use_store &&
|
56
|
+
init_cart if @site && @site.use_store && !@domain.under_construction
|
56
57
|
|
57
58
|
before_action
|
58
59
|
end
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|