magerecord 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/magerecord/fitlion/order.rb +1 -1
- data/magerecord.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3062ce7e369bc26a914edb1c373b79e98a14bb5f
|
4
|
+
data.tar.gz: 609e55ad94b3a7a13214b3aa0db28613753d4179
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb08aedba0156d41985c2693822daf587804de020fbd7f748222b37c7b83099bf880658f525a008d2a06023a50922539511407120d2efc6c63b96f11ec691870
|
7
|
+
data.tar.gz: 5c9712e55b8c6ce1df5742988b19c82a7f86b68050d208fbd5eb19b350713e0933aebe5e493d6baf75f90915cc6eeed244fb61571d9ce194aad0ad294836c570
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -4,7 +4,7 @@ module MageRecord
|
|
4
4
|
# ignore canceled orders
|
5
5
|
default_scope { where state: [:processing, :complete] }
|
6
6
|
scope :delivery, -> { where shipping_method: [:flatrate_flatrate, :addon_addon] }
|
7
|
-
scope :collection, -> { where "#{
|
7
|
+
scope :collection, -> { where "#{Order.table_name}.shipping_method LIKE 'selfcollect%'" }
|
8
8
|
|
9
9
|
def for_delivery?
|
10
10
|
%w{flatrate addon}.include? shipping_method.split('_').first
|
data/magerecord.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: magerecord 0.2.
|
5
|
+
# stub: magerecord 0.2.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "magerecord"
|
9
|
-
s.version = "0.2.
|
9
|
+
s.version = "0.2.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|