constant_table_saver 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +3 -2
- data/constant_table_saver.gemspec +2 -1
- data/lib/constant_table_saver.rb +2 -2
- data/lib/constant_table_saver/version.rb +1 -1
- metadata +6 -5
data/README
CHANGED
@@ -11,7 +11,8 @@ named after the name field you specify.
|
|
11
11
|
Compatibility
|
12
12
|
=============
|
13
13
|
|
14
|
-
Currently tested against Rails
|
14
|
+
Currently tested against Rails 3.2.13, on Ruby 1.8.7 and 2.0.0p0.
|
15
|
+
Was also tested compatible with 2.3.14, 3.0.17, and 3.1.8.
|
15
16
|
|
16
17
|
|
17
18
|
Example
|
@@ -62,4 +63,4 @@ Means you will also have methods returning those records:
|
|
62
63
|
Optionally, you can specify a :name_prefix and/or :name_suffix.
|
63
64
|
|
64
65
|
|
65
|
-
Copyright (c) 2010-
|
66
|
+
Copyright (c) 2010-2013 Will Bryant, Sekuda Ltd, released under the MIT license
|
@@ -16,7 +16,8 @@ named after the name field you specify.
|
|
16
16
|
Compatibility
|
17
17
|
=============
|
18
18
|
|
19
|
-
Currently tested against Rails
|
19
|
+
Currently tested against Rails 3.2.13, on Ruby 1.8.7 and 2.0.0p0.
|
20
|
+
Was also tested compatible with 2.3.14, 3.0.17, and 3.1.8.
|
20
21
|
EOF
|
21
22
|
gem.has_rdoc = false
|
22
23
|
gem.author = "Will Bryant"
|
data/lib/constant_table_saver.rb
CHANGED
@@ -52,8 +52,8 @@ module ConstantTableSaver
|
|
52
52
|
module ActiveRecord3ClassMethods
|
53
53
|
def scoped(options = nil)
|
54
54
|
return super if options
|
55
|
-
return super if respond_to?(:current_scoped_methods) && current_scoped_methods
|
56
|
-
return super if respond_to?(:current_scope) && current_scope
|
55
|
+
return super if respond_to?(:current_scoped_methods, true) && current_scoped_methods
|
56
|
+
return super if respond_to?(:current_scope, true) && current_scope
|
57
57
|
@cached_blank_scope ||= super.tap do |s|
|
58
58
|
class << s
|
59
59
|
def to_a
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: constant_table_saver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
|
-
-
|
7
|
+
- 3
|
8
8
|
- 0
|
9
9
|
- 0
|
10
|
-
version:
|
10
|
+
version: 3.0.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Will Bryant
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-04-20 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: activerecord
|
@@ -70,7 +70,8 @@ description: |
|
|
70
70
|
Compatibility
|
71
71
|
=============
|
72
72
|
|
73
|
-
Currently tested against Rails
|
73
|
+
Currently tested against Rails 3.2.13, on Ruby 1.8.7 and 2.0.0p0.
|
74
|
+
Was also tested compatible with 2.3.14, 3.0.17, and 3.1.8.
|
74
75
|
|
75
76
|
email: will.bryant@gmail.com
|
76
77
|
executables: []
|