Skip to content

Commit

Permalink
remove active_record exnteder
Browse files Browse the repository at this point in the history
  • Loading branch information
eudoxa committed May 8, 2024
1 parent bcd9d0b commit e32f154
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 65 deletions.
5 changes: 0 additions & 5 deletions lib/chanko/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ class Railtie < Rails::Railtie
ActiveSupport.on_load :action_controller do
::ActionController::Base.send(:include, Controller, Invoker, UnitProxyProvider)
end
ActiveSupport.on_load :active_record do
::ActiveRecord::Base.send(:include, UnitProxyProvider)
::ActiveRecord::Relation.send(:include, UnitProxyProvider)
::ActiveRecord::Associations::CollectionAssociation.send(:include, UnitProxyProvider)
end
end


Expand Down
1 change: 0 additions & 1 deletion lib/chanko/unit/extender.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "chanko/unit/extender/active_record_class_methods"
require "chanko/unit/extender/extension"

module Chanko
Expand Down
57 changes: 0 additions & 57 deletions lib/chanko/unit/extender/active_record_class_methods.rb

This file was deleted.

2 changes: 0 additions & 2 deletions lib/chanko/unit/extender/extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ module Chanko
module Unit
class Extender
class Extension < Module
include ActiveRecordClassMethods

def initialize(mod, prefix = nil, &block)
@mod = mod
@prefix = prefix
Expand Down

0 comments on commit e32f154

Please sign in to comment.