Ruby on Rails
Thursday, August 20, 2015
On Wednesday, 19 August 2015 20:20:59 UTC-5, Ruby-Forum.com User wrote:
Hi,
I am new to ruby on rails development. Please excuse me if my question
is too obvious. I am trying to upgrade from rails 3.0 to 3.2. I am stuck
at a point. I am running into this following error.
INTERNAL ERROR!!! undefined method `abstract_class?' for
#<Class:0x007f8692ac2450>
/Users/CRalladoddi/.rvm/gems/ruby-1.9.3-p551/gems/attr_ encrypted-1.2.1/lib/attr_ encrypted.rb:241:in
`method_missing'
/Users/CRalladoddi/.rvm/gems/ruby-1.9.3-p551/gems/ activerecord-3.2.13/lib/ active_record/dynamic_ matchers.rb:55:in
`method_missing'
/Users/CRalladoddi/.rvm/gems/ruby-1.9.3-p551/gems/attr_ encrypted-1.2.1/lib/attr_ encrypted/adapters/active_ record.rb:50:in
`method_missing_with_attr_encrypted'
/Users/CRalladoddi/.rvm/gems/ruby-1.9.3-p551/gems/ activerecord-3.2.13/lib/ active_record/base.rb:421:in
`inspect'
What I found is that, the method 'abstract_class?' has been moved from
base.rb to inheritance.rb in rails 3.2.
I was actually trying to use execute the following statement when this
error happened.
ActiveRecord::Base.connection.column_exists? klass.table_name, :user_id
Any ideas on work arounds
That version of attr_encrypted is fairly old, but I don't think it's the culprit. Can you post the full stack trace?
--Matt Jones
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/92a33111-fdf5-4f79-920c-48815585af4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment