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: 6e4efd50f82e7d8480fbb5fd8d00a66d6d7e88e2
4
- data.tar.gz: a26ed69e822118579faa4c65b1d8550ce5e41072
3
+ metadata.gz: d10a8b3e2a2b3ec51a8441cde8046fa3be658848
4
+ data.tar.gz: 0a5cd9123a5daff891fbedac15903dfe5d62d507
5
5
  SHA512:
6
- metadata.gz: b98bc6f0935073ebc6d0f7ca7376be81aac42c4b15c77e8d6288a3b7e2992c9e59e7940e6a00fa1d4433efb64692a5f2b6a5eb85c31ba27a84f1b7605f060db8
7
- data.tar.gz: 92c46c29340cc5da24471f1f9fb28c7b6fa90dabbd7eb2fe65927f3bac13e5255c212ee262b4d08746205477017f22fd3244da99507921cb6f3224ff1dafdc5e
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"
@@ -1,3 +1,3 @@
1
1
  module PiggybakBundleDiscounts
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-03-27 00:00:00.000000000 Z
11
+ date: 2014-04-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Bundle Discount Support in Piggybak.
14
14
  email: