-
Notifications
You must be signed in to change notification settings - Fork 3
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
Split ORM Logic to core [NEW] #15
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,15 @@ | |
require 'sidekiq/active_record/version' | ||
|
||
|
||
module Sidekiq | ||
module Orm | ||
extend ActiveSupport::Autoload | ||
|
||
autoload :TaskWorker | ||
autoload :ManagerWorker | ||
end | ||
end | ||
|
||
module Sidekiq | ||
module ActiveRecord | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Didn't we nest ActiveRecord into Orm ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mperham , What do you think ? Should we nest all Orm modules under Orm to not bloat the Sidekiq Namespace ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, please don't use the Sidekiq module directly. You should use your own base module: SidekiqOrm or similar. |
||
extend ActiveSupport::Autoload | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seuros WDYT about this?
also, I looked into Mongoid's, for possible solutions - this is basic pagination...
see:
https://github.com/mongoid/mongoid/issues/1334