Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor adapters #1348

Merged
merged 8 commits into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions lib/ransack.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
require 'active_support/core_ext'
require 'ransack/configuration'
require 'ransack/adapters'
require 'polyamorous/polyamorous'

Ransack::Adapters.object_mapper.require_constants

module Ransack
extend Configuration
class UntraversableAssociationError < StandardError; end
Expand All @@ -22,8 +19,8 @@ class UntraversableAssociationError < StandardError; end
require 'ransack/search'
require 'ransack/ransacker'
require 'ransack/translate'

Ransack::Adapters.object_mapper.require_adapter
require 'ransack/active_record'
require 'ransack/context'

ActiveSupport.on_load(:action_controller) do
require 'ransack/helpers'
Expand Down
File renamed without changes.
31 changes: 0 additions & 31 deletions lib/ransack/adapters.rb

This file was deleted.

128 changes: 0 additions & 128 deletions lib/ransack/adapters/active_record/ransack/constants.rb

This file was deleted.

56 changes: 0 additions & 56 deletions lib/ransack/adapters/active_record/ransack/context.rb

This file was deleted.

83 changes: 0 additions & 83 deletions lib/ransack/adapters/active_record/ransack/nodes/condition.rb

This file was deleted.

8 changes: 0 additions & 8 deletions lib/ransack/adapters/active_record/ransack/translate.rb

This file was deleted.

47 changes: 0 additions & 47 deletions lib/ransack/adapters/active_record/ransack/visitor.rb

This file was deleted.

Loading