referrable_joins 0.1.0 → 0.1.1

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.
@@ -67,7 +67,7 @@ module ActiveRecord
67
67
  outer_association_joins = []
68
68
 
69
69
  inner_joins = @inner_joins_values.map {|j| j.respond_to?(:strip) ? j.strip : j}.uniq
70
- outer_joins = @outer_joins_values.map {|j| j.respond_to?(:strip) ? j.strip : j}.uniq
70
+ outer_joins = @outer_joins_values.map {|j| j.respond_to?(:strip) ? j.strip : j}.uniq
71
71
 
72
72
  inner_joins.each do |join|
73
73
  inner_association_joins << join if [Hash, Array, Symbol, ReferrableJoin].include?(join.class) && !array_of_strings?(join)
@@ -121,8 +121,8 @@ module ActiveRecord
121
121
  @base_records_in_order = []
122
122
  @table_aliases = Hash.new { |aliases, table| aliases[table] = 0 }
123
123
  @table_aliases[base.table_name] = 1
124
- build(inner_associations, @joins.first, Arel::InnerJoin)
125
124
  build(outer_associations, @joins.first, Arel::OuterJoin)
125
+ build(inner_associations, @joins.first, Arel::InnerJoin)
126
126
  end
127
127
 
128
128
  def build(associations, parent = nil, join_type = Arel::InnerJoin)
@@ -1,3 +1,3 @@
1
1
  module ReferrableJoins
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: referrable_joins
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Burke Libbey