earth 0.0.33 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
data/lib/earth.rb CHANGED
@@ -2,7 +2,6 @@ require 'active_record'
2
2
  require 'cohort_scope'
3
3
  require 'earth/base'
4
4
  require 'earth/conversions_ext'
5
- require 'earth/active_record_ext'
6
5
  require 'earth/inflectors'
7
6
  require 'data_miner'
8
7
  require 'falls_back_on'
@@ -132,6 +131,7 @@ private
132
131
  end
133
132
 
134
133
  def load_plugins
134
+ require 'earth/active_record_ext'
135
135
  Dir[File.join(Earth.root, 'vendor', '**', 'init.rb')].each do |pluginit|
136
136
  $:.unshift File.join(File.dirname(pluginit), 'lib')
137
137
  load pluginit
@@ -1,3 +1,4 @@
1
+ require 'active_record'
1
2
  ::ActiveRecord::Base.class_eval do
2
3
  def self.run_data_miner_on_belongs_to_associations
3
4
  reflect_on_all_associations(:belongs_to).each do |a|
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: earth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 93
4
+ hash: 91
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 33
10
- version: 0.0.33
9
+ - 34
10
+ version: 0.0.34
11
11
  platform: ruby
12
12
  authors:
13
13
  - Seamus Abshere