Skip to content

Getting undefined method 'add_order!' error on a new Ruby 1.9.3/Rails 4.0.0 project #279

@rnhurt

Description

@rnhurt

I created a brand new Rails 4.0.0 project and replaced gem 'sqlite3' in the Gemfile with:

gem 'tiny_tds'
gem 'activerecord-sqlserver-adapter'

I'm getting the following error when trying to start Rails or running the console:

/Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@api/gems/activesupport-4.0.0/lib/active_support/core_ext/module/aliasing.rb:32:in `alias_method': undefined method `add_order!' for class `Class' (NameError)
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@api/gems/activesupport-4.0.0/lib/active_support/core_ext/module/aliasing.rb:32:in `alias_method_chain'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@api/gems/activerecord-sqlserver-adapter-2.3.8/lib/active_record/connection_adapters/sqlserver_adapter/core_ext/active_record.rb:14:in `singletonclass'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@api/gems/activerecord-sqlserver-adapter-2.3.8/lib/active_record/connection_adapters/sqlserver_adapter/core_ext/active_record.rb:12:in `included'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@api/gems/activerecord-sqlserver-adapter-2.3.8/lib/active_record/connection_adapters/sqlserver_adapter/core_ext/active_record.rb:145:in `include'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@api/gems/activerecord-sqlserver-adapter-2.3.8/lib/active_record/connection_adapters/sqlserver_adapter/core_ext/active_record.rb:145:in `<top (required)>'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@api/gems/activerecord-sqlserver-adapter-2.3.8/lib/active_record/connection_adapters/sqlserver_adapter.rb:3:in `require'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@api/gems/activerecord-sqlserver-adapter-2.3.8/lib/active_record/connection_adapters/sqlserver_adapter.rb:3:in `<top (required)>'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@api/gems/activerecord-sqlserver-adapter-2.3.8/lib/activerecord-sqlserver-adapter.rb:1:in `require'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@api/gems/activerecord-sqlserver-adapter-2.3.8/lib/activerecord-sqlserver-adapter.rb:1:in `<top (required)>'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from /Users/rnhurt/src/ik/sqltest/config/application.rb:7:in `<top (required)>'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@api/gems/railties-4.0.0/lib/rails/commands.rb:62:in `require'
    from /Users/rnhurt/.rvm/gems/ruby-1.9.3-p448@api/gems/railties-4.0.0/lib/rails/commands.rb:62:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions