Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.
sidonathPublic archive

About

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

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

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

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages