Skip to content

Commit eeb15d1

Browse files
committed
fixed gemloads problem
1 parent acee12b commit eeb15d1

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

lib/monkey_patch_activerecord.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
require 'active_record/connection_adapters/abstract/connection_pool'
66

77
#
8-
# patching activrecord to allow specifying the table name as a function of
8+
# patching activerecord to allow specifying the table name as a function of
99
# attributes
1010
#
1111
module ActiveRecord
1212
#
13-
# patches for relation to allow backhooks into the activerecord
13+
# patches for relation to allow back hooks into the activerecord
1414
# requesting name of table as a function of attributes
1515
#
1616
class Relation

init.rb renamed to lib/partitioned.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
require 'monkey_patch_activerecord'
22
require 'monkey_patch_postgres'
33

4-
require 'partitioned/partitioned_base'
5-
#require 'partitioned/partitioned_base/configurator/data'
4+
require 'partitioned/bulk_methods_mixin'
5+
require 'partitioned/active_record_overrides'
6+
require 'partitioned/partitioned_base/configurator.rb'
7+
require 'partitioned/partitioned_base/configurator/data'
68
require 'partitioned/partitioned_base/configurator/dsl'
9+
require 'partitioned/partitioned_base.rb'
710
require 'partitioned/partitioned_base/configurator/reader'
811
require 'partitioned/partitioned_base/partition_manager'
912
require 'partitioned/partitioned_base/sql_adapter'

lib/partitioned/partitioned_base/configurator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Partitioned
2-
class PartitionedBase
2+
class PartitionedBase < ActiveRecord::Base
33
module Configurator
44
end
55
end

partitioned.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
$LOAD_PATH.push File.expand_path("../lib", __FILE__)
2+
13
Gem::Specification.new do |s|
24
s.name = 'partitioned'
35
s.version = '0.8.0'

0 commit comments

Comments
 (0)