meta_where 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ Changes since 1.0.0 (2011-01-17):
2
+ * Update polymorphic join support to play nicely with MetaSearch
3
+
1
4
  Changes since 0.9.10 (2011-01-06):
2
5
  * Doc updates only, and a version change to 1.0.0.
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -28,7 +28,7 @@ module MetaWhere
28
28
  @reflections << reflection
29
29
  if reflection.options[:polymorphic]
30
30
  raise ArgumentError, "You can't create a polymorphic belongs_to join without specifying the polymorphic class!" unless klass
31
- association = build_polymorphic_join_association(reflection, parent, klass)
31
+ association = PolymorphicJoinAssociation.new(reflection, self, klass, parent)
32
32
  else
33
33
  association = build_join_association(reflection, parent)
34
34
  end
@@ -53,10 +53,6 @@ module MetaWhere
53
53
  find_join_association_without_metawhere(name_or_reflection, parent)
54
54
  end
55
55
  end
56
-
57
- def build_polymorphic_join_association(reflection, parent, klass)
58
- PolymorphicJoinAssociation.new(reflection, self, klass, parent)
59
- end
60
56
  end
61
57
 
62
58
  class PolymorphicJoinAssociation < ActiveRecord::Associations::ClassMethods::JoinDependency::JoinAssociation
data/meta_where.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{meta_where}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ernie Miller"]
12
- s.date = %q{2011-01-17}
12
+ s.date = %q{2011-01-18}
13
13
  s.description = %q{
14
14
  MetaWhere offers the ability to call any Arel predicate methods
15
15
  (with a few convenient aliases) on your Model's attributes instead
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ernie Miller
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-17 00:00:00 -05:00
17
+ date: 2011-01-18 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency