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

Invalid option :versioned provided to relation :versions #11

Open
AndreiMotinga opened this issue Dec 19, 2017 · 1 comment
Open

Invalid option :versioned provided to relation :versions #11

AndreiMotinga opened this issue Dec 19, 2017 · 1 comment

Comments

@AndreiMotinga
Copy link

I'm trying to update app from rails 4 to rails 5, which required mongoid > 5. with it mongoid-versioning fails with

➜  cms git:(rails-5) ✗ be rails s
=> Booting WEBrick
=> Rails 5.0.6 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
[2017-12-19 13:12:33] INFO  WEBrick 1.3.1
[2017-12-19 13:12:33] INFO  ruby 2.3.3 (2016-11-21) [x86_64-darwin16]
[2017-12-19 13:12:33] INFO  WEBrick::HTTPServer#start: pid=33566 port=3000
Started GET "/admin/articles" for ::1 at 2017-12-19 13:12:51 -0500
DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from add_before_filter at /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cancancan-1.10.1/lib/cancan/controller_resource.rb:9)

Mongoid::Errors::InvalidOptions (
message:
  Invalid option :versioned provided to relation :versions.
summary:
  Mongoid checks the options that are passed to the relation macros to ensure that no ill side effects occur by letting something slip by.
resolution:
  Valid options are: as, cascade_callbacks, cyclic, order, store_as, before_add, after_add, before_remove, after_remove, class_name, counter_cache, extend, inverse_class_name, inverse_of, name, relation, validate, make sure these are the ones you are using.):

app/models/article.rb:4:in `include'
app/models/article.rb:4:in `<class:Article>'
app/models/article.rb:1:in `<top (required)>'
app/controllers/admin/articles_controller.rb:1:in `<top (required)>'
  Rendering /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
  Rendering /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
  Rendered /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (4.2ms)
  Rendering /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
  Rendered /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms)
  Rendering /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
  Rendered /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (21.2ms)
  Rendered /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (179.4ms)
@jsierrakrlead
Copy link

no updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants