acts_as_ordered_tree 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ module ActsAsOrderedTree
29
29
  include Columns
30
30
 
31
31
  has_many_children_options = {
32
- :class_name => base_class.name,
32
+ :class_name => "::#{base_class.name}",
33
33
  :foreign_key => options[:parent_column],
34
34
  :order => options[:position_column],
35
35
  :inverse_of => (:parent unless options[:polymorphic]),
@@ -50,7 +50,7 @@ module ActsAsOrderedTree
50
50
  # create associations
51
51
  has_many :children, has_many_children_options
52
52
  belongs_to :parent,
53
- :class_name => base_class.name,
53
+ :class_name => "::#{base_class.name}",
54
54
  :foreign_key => options[:parent_column],
55
55
  :counter_cache => options[:counter_cache],
56
56
  :inverse_of => (:children unless options[:polymorphic])
@@ -92,4 +92,4 @@ module ActsAsOrderedTree
92
92
  end
93
93
  end # module ActsAsOrderedTree
94
94
 
95
- ActiveRecord::Base.extend(ActsAsOrderedTree)
95
+ ActiveRecord::Base.extend(ActsAsOrderedTree)
@@ -1,3 +1,3 @@
1
1
  module ActsAsOrderedTree
2
- VERSION = '1.1.6'
2
+ VERSION = '1.1.7'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: acts_as_ordered_tree
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.6
5
+ version: 1.1.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alexei Mikhailov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-21 00:00:00.000000000 Z
13
+ date: 2013-07-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  version_requirements: !ruby/object:Gem::Requirement
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
162
  - !ruby/object:Gem::Version
163
163
  segments:
164
164
  - 0
165
- hash: 277439329
165
+ hash: -154648787
166
166
  version: '0'
167
167
  none: false
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  - !ruby/object:Gem::Version
172
172
  segments:
173
173
  - 0
174
- hash: 277439329
174
+ hash: -154648787
175
175
  version: '0'
176
176
  none: false
177
177
  requirements: []