-
Notifications
You must be signed in to change notification settings - Fork 21
added support for mongoid #54
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: David A. Cuadrado <[email protected]>
Signed-off-by: David A. Cuadrado <[email protected]>
Signed-off-by: David A. Cuadrado <[email protected]>
Signed-off-by: David A. Cuadrado <[email protected]>
Signed-off-by: David A. Cuadrado <[email protected]>
end | ||
|
||
if defined?(Mongoid::Document) | ||
Mongoid::Document::ClassMethods.send(:include, Xapit::Client::Membership::ClassMethods) |
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.
this can be moved to the initializer? (https://github.com/ryanb/xapit/blob/master/lib/xapit/client/railtie.rb#L9-11)
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.
why? I want those methods available on sinatra too, that's not rails exclusive
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.
sounds good, then is a good idea move the AR one to active_record_adapter.rb
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.
then is a good idea move the AR one to the adapter also :)
Signed-off-by: David A. Cuadrado <[email protected]>
Signed-off-by: Jorge H. Cuadrado <[email protected]>
Signed-off-by: David A. Cuadrado <[email protected]>
Signed-off-by: David A. Cuadrado <[email protected]>
Signed-off-by: David A. Cuadrado <[email protected]>
Signed-off-by: David A. Cuadrado <[email protected]>
… slow Signed-off-by: David A. Cuadrado <[email protected]>
Conflicts: lib/xapit.rb xapit.gemspec
please let me know if you need something else