Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

rails 4 compatibility #750

Closed
mculp opened this Issue · 0 comments

2 participants

@mculp

I'm upgrading my app to edge rails, and I get the following error:

DEPRECATION WARNING: The object passed to the active_record load hook was previously ActiveRecord::Base (a Class). Now it is ActiveRecord::Model (a Module). You have called `extend' which would add singleton methods to Model. This is presumably not what you want, since the methods would not be inherited down to Base. Rather than using extend, please use ActiveSupport::Concern + include, which will ensure that your class methods are inherited. (called from block in <top (required)> at /Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/gems/orm_adapter-0.0.7/lib/orm_adapter/adapters/active_record.rb:92)
rake aborted!
ActiveRecord::Model is not a class/module
/Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/gems/orm_adapter-0.0.7/lib/orm_adapter/adapters/active_record.rb:93:in `block in <top (required)>'
/Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/bundler/gems/rails-aca39428eb11/activesupport/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/bundler/gems/rails-aca39428eb11/activesupport/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/bundler/gems/rails-aca39428eb11/activesupport/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
/Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/bundler/gems/rails-aca39428eb11/activesupport/lib/active_support/lazy_load_hooks.rb:44:in `each'
/Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/bundler/gems/rails-aca39428eb11/activesupport/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
/Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/bundler/gems/rails-aca39428eb11/activerecord/lib/active_record/base.rb:328:in `<top (required)>'
/Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/bundler/gems/cancan-aed9f26e5610/lib/cancan/model_adapters/active_record_adapter.rb:168:in `<top (required)>'
/Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/bundler/gems/rails-aca39428eb11/activesupport/lib/active_support/dependencies.rb:227:in `require'
/Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/bundler/gems/rails-aca39428eb11/activesupport/lib/active_support/dependencies.rb:227:in `block in require'
/Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/bundler/gems/rails-aca39428eb11/activesupport/lib/active_support/dependencies.rb:212:in `load_dependency'
/Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/bundler/gems/rails-aca39428eb11/activesupport/lib/active_support/dependencies.rb:227:in `require'
/Users/mculp/.rbenv/versions/1.9.3-p194-perf/gemsets/cfac/bundler/gems/cancan-aed9f26e5610/lib/cancan.rb:11:in `<top (required)>'
@ryanb ryanb closed this in f1cebde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.