ActiveScaffold thread-safety

Multiple sources claim ActiveScaffold isn’t thread safe:

From those I gather controller level configuration changes and authorization aren’t thread-safe. Is it safe to consider an application thread-safe if it doesn’t use those components of ActiveScaffold? Are there any other features in ActiveScaffold that aren’t thread-safe?

Does ActiveScaffold work with Rails 3?

Does ActiveScaffold work with Rails 3?

ActiveScaffold search date range

I am developing a Rails application using ActiveScaffold. The thing is that I need to filter a list of results by a date range. (SQL equivalent ‘BETWEEN ? AND ?’) I know that ActiveScaffold has a fea

ActiveScaffold Rails 4

I’m getting a really strange error with ActiveScaffold and Rails 4. I created a brand new project, ran rake db:create and bundle install, then added the gem active_scaffold to my gem file and run

ActiveScaffold for PHP

Ruby on Rails has a bunch of plugins which extend the normal scaffolding: Lipsiadmin Hobo Streamlined ActiveScaffold Does the PHP community have anything similar? phpmyadmin is great, but it doesn’t

Overriding show/edit/etc behaviour in ActiveScaffold

I currently have a generic list that is generated by ActiveScaffold. At the end of each row in the list, ActiveScaffold adds the standard CRUD links – Show, Edit, Delete – for each record. I do not wi

Is there an ActiveScaffold equivalent for Django?

A while ago I created a frontend for a database using RoR and ActiveScaffold. ActiveScaffold let me easily create lots of the features I needed: Read Only Access, Sexy Interface, Sorting, Advanced Sea

ActiveScaffold keeps rounding my numbers

I need to display & edit highly precise decimal numbers – latitude and longitude. ActiveScaffold keep rounding my values to precision 6 scale 3, can I change that to precision 11 scale 8 somewhere

Ruby on Rails ActiveScaffold: Showing {{model}} instead of model name?

I’m using ActiveScaffold with Ruby on Rails and I’m loving it, however there is one weird thing. Whenever I hit Edit or Create New in my webapp’s ActiveScaffold, it says Create {{model}} or Upd

ActiveScaffold alike Admin for Spring Framework?

I need an admin interface for my spring-struts-hibernate application. an interface for creating, updating, and deleting objects. In Rails there’s ActiveScaffold. Does something like an admin generator

How implement Search in ActiveScaffold Rails 3

My Normal search in the activescaffold list page is not working. I have ListLocations table which has fields id | list_id | wiki_location_id. I have following model relations class List < ActiveR

Answers

Unfortunately there is not much in the way of official documentation on this matter, however there are two useful quotes from developers which may help you here. First, in 2010, here on this thread a developer stated:

In the controller, using marked_records. Marked records are stored in session, so they only can be accessed from the controller. Model methods were a hack to get the model methods from current controller, but it was using class variables which is not thread safe.

ActiveScaffold is not thread safe ATM, but I will fix current non thread safe code later and I don’t want to add more non thread safe code. If model methods are needed I will add them using thread variables

This indicated the original intent was that there would not be thread-safety. However it was being developed.

After this point discussion on the matter seems to have become quiet and I cannot find any further official statements. However people commenting on resent versions have said that the only threading issue is that changes to active_scaffold_config must be placed inside some kind of lock in order to be safe and that the rest of the system should now be threadsafe.

Beware, I cannot find official docs to prove this, it is only based on the comments of users who have read over the code base so I would not guarantee this to always be the case, but given the comments of a dev saying no more non-threaded code would be added this is likely a safe bet.

Finally, note this thread it implies that the code-base is now nearly thread safe and threads can be used as long as you take a few precautions and use workarounds in a few places.

I am sorry I do not have a more authoritative answer here, the documentation on this is sparse and reading the code is difficult to be sure either way but this is the closest to sure I can get (it seems people have had success using it with threads in production at least).