Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Active Admin keeps references to initial classes after Rails reloads in Dev #870

gregbell opened this Issue · 0 comments

1 participant



  1. Create a model Post with the attribute "title"
  2. Register the Post model with Active Admin
  3. View the Post model in the UI
  4. Add "validates_presence_of :title" to Post model
  5. Create a new post without a title
  6. New Post instance will be created without validating the title


It should use the latest reloaded version of the Post class

@gregbell gregbell was assigned
@gregbell gregbell referenced this issue from a commit
@gregbell gregbell ActiveAdmin::Resource looks up classes at runtime using their name
To deal with the reloading issues in #870, we now store reference to the
resource class as a string and constantize it each time we need it.

Also added a new cucumber profile called "class-reloading" which does
not cache classes. Since Active Admin should always work as expected in
development with Rails reloading, we should continue to grow scenarios
that include the '@requires-reloading' tag.
@gregbell gregbell closed this
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.