piggybak_bundle_discounts 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d10a8b3e2a2b3ec51a8441cde8046fa3be658848
|
4
|
+
data.tar.gz: 0a5cd9123a5daff891fbedac15903dfe5d62d507
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b2dde288ef0e60dedc1c433dda9af5fa3706584d455475629460dc153bc5a29e2337e9b6c5879d8414d66a35ca3289ea99b1d7f587eb7159b6d653f3cfa8832
|
7
|
+
data.tar.gz: 34e2d9a9b46460d92e6a697e3cc8eda609ccc5587767ad1df3346ae96c2446d84cb4634b7b9be79f6bc6ececcbdd924d742b0f36240ce5e7d9fdc66bf1ee5a3e
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module PiggybakBundleDiscounts
|
2
2
|
class BundleDiscount < ActiveRecord::Base
|
3
|
-
scope :active, where("active_until IS NULL OR active_until > ?", DateTime.now)
|
3
|
+
scope :active, -> { where("active_until IS NULL OR active_until > ?", DateTime.now) }
|
4
4
|
|
5
5
|
has_many :bundle_discount_sellables, :dependent => :destroy
|
6
6
|
has_many :sellables, :through => :bundle_discount_sellables, :class_name => "::Piggybak::Sellable"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: piggybak_bundle_discounts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Barrett Griffith, Steph Skardal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Bundle Discount Support in Piggybak.
|
14
14
|
email:
|