Skip to content

Mongoid Issue #2

Closed
Closed
@CaleCrawford

Description

@CaleCrawford

Hello,

Love this idea and this project. Thank you for working on it. While installing I ran into a problem and I can't seem to figure it out.

  • I installed the jsonapi.rb gem
  • Then installed the ransack-mongoid lib gem 'ransack-mongoid', github: 'activerecord-hackery/ransack-mongoid'

Then when I start the rails server i get the error:
lib/jsonapi/patches.rb:37:in 'alias_method': undefined method 'visit_Ransack_Nodes_Sort' for class 'Ransack::Visitor' (NameError)

Which look like its here: https://github.com/stas/jsonapi.rb/blob/master/lib/jsonapi/patches.rb#L37.

Because I'm using mongoid i have active_record turned off. Could that be part of the problem?
Newish to rails and unfamiliar with ransack so any direction or ideas would be appreciated.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions