remarkable_activerecord 3.1.12 → 3.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,13 +54,21 @@ module Remarkable
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def collection?
|
57
|
-
if reflection =
|
57
|
+
if reflection = find_reflection
|
58
58
|
[:has_many, :has_and_belongs_to_many].include?(reflection.macro)
|
59
59
|
else
|
60
60
|
false
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
private
|
65
|
+
|
66
|
+
def find_reflection
|
67
|
+
if subject_class.respond_to?(:reflect_on_association)
|
68
|
+
subject_class.reflect_on_association(@attribute)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
64
72
|
end
|
65
73
|
|
66
74
|
# Ensures that the model cannot be saved if one of the attributes listed is not present.
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{remarkable_activerecord}
|
5
|
-
s.version = "3.1.
|
5
|
+
s.version = "3.1.13"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Carlos Brando", "Jos\303\251 Valim", "Diego Carrion"]
|
9
|
-
s.date = %q{2010-
|
9
|
+
s.date = %q{2010-02-19}
|
10
10
|
s.description = %q{Remarkable ActiveRecord: collection of matchers and macros with I18n for ActiveRecord}
|
11
11
|
s.email = ["eduardobrando@gmail.com", "jose.valim@gmail.com", "dc.rec1@gmail.com"]
|
12
12
|
s.extra_rdoc_files = ["README", "LICENSE", "CHANGELOG"]
|
@@ -23,13 +23,13 @@ Gem::Specification.new do |s|
|
|
23
23
|
|
24
24
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
25
25
|
s.add_runtime_dependency(%q<rspec>, [">= 1.2.0"])
|
26
|
-
s.add_runtime_dependency(%q<remarkable>, ["~> 3.1.
|
26
|
+
s.add_runtime_dependency(%q<remarkable>, ["~> 3.1.13"])
|
27
27
|
else
|
28
28
|
s.add_dependency(%q<rspec>, [">= 1.2.0"])
|
29
|
-
s.add_dependency(%q<remarkable>, ["~> 3.1.
|
29
|
+
s.add_dependency(%q<remarkable>, ["~> 3.1.13"])
|
30
30
|
end
|
31
31
|
else
|
32
32
|
s.add_dependency(%q<rspec>, [">= 1.2.0"])
|
33
|
-
s.add_dependency(%q<remarkable>, ["~> 3.1.
|
33
|
+
s.add_dependency(%q<remarkable>, ["~> 3.1.13"])
|
34
34
|
end
|
35
35
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remarkable_activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Brando
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2010-
|
14
|
+
date: 2010-02-19 00:00:00 +01:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - ~>
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 3.1.
|
35
|
+
version: 3.1.13
|
36
36
|
version:
|
37
37
|
description: "Remarkable ActiveRecord: collection of matchers and macros with I18n for ActiveRecord"
|
38
38
|
email:
|