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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 467cece0f88d960855d4ad26840903cae902f587
4
- data.tar.gz: f7111b3f98be115978f625eaa801ad53d12d524a
3
+ metadata.gz: 8cabbe7518c75a074f2ce3c8dfc4cf4f9e1ed349
4
+ data.tar.gz: bf108c32cd8e7fb629f3d4fa046a2d9dcff9f8e8
5
5
  SHA512:
6
- metadata.gz: cde7f1788bd57774d5378b215a9fd608f32b3178147f02f62c945f75048f6d33fae850a6312ba12989c93cba6b4ae41f0776e79afba79f142b41b13880c6b988
7
- data.tar.gz: b7c8fc5902c3de794590a06467ac90152cf11a01c589da70fa9a2835cea10fd13ff556ad446e103ef07a14c36af90932c3a042a628ae9db84f74cbbf17809e9e
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 && !domain.under_construction
56
+ init_cart if @site && @site.use_store && !@domain.under_construction
56
57
 
57
58
  before_action
58
59
  end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.7.6'
2
+ VERSION = '0.7.7'
3
3
  end
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.6
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-13 00:00:00.000000000 Z
11
+ date: 2015-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg