Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.
/ ares-poly-assoc Public archive

Demo for a regression in Rails 3.1 with handling polymorphic associations on ActiveResource objects

Notifications You must be signed in to change notification settings

sidonath/ares-poly-assoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6ed4161 · Nov 7, 2011

History

2 Commits
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011
Nov 7, 2011

Repository files navigation

Steps to reproduce:

  1. Start the app
  2. Navigate the http://localhost:3000/pictures/
  3. ...

Expected behavior

No exception or an execption because an activeresource was not configured, similar to following:

[2011-11-07 22:29:26] ERROR NoMethodError: undefined method `wrap_parameters' for ActionController::Base:Class
        config/initializers/wrap_parameters.rb:8

Observed behavior

An exception because a scoped method was called on an ActiveResource class:

NoMethodError in Pictures#index

Showing app/views/pictures/_picture.html.erb where line #1 raised:

undefined method `scoped' for Employee:Class

Notes

Check out branch rails-3.0 to test the behavior with Rails 3.0 (works).

About

Demo for a regression in Rails 3.1 with handling polymorphic associations on ActiveResource objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published