Scaffolded controllers should be able to interact with an Opium::Model without any intervention by the user: Opium should be a plug-and-play replacement for ActiveRecord, working as seamlessly as possible. As such, to be compliant with Rails 4.x's scaffolded controllers, the following is needed:
[x] Model.all should be invokable without any parameters, in which case it just returns the default criteria. This differs from the method provided by the current Queryable implementation.
[x] Persistable should provide a public instance update method, which takes a set of attributes to mutate the instance, then persists the alterations. This will require some modifications to some of the private implementation details.
Scaffolded controllers should be able to interact with an Opium::Model without any intervention by the user: Opium should be a plug-and-play replacement for ActiveRecord, working as seamlessly as possible. As such, to be compliant with Rails 4.x's scaffolded controllers, the following is needed:
Model.all
should be invokable without any parameters, in which case it just returns the default criteria. This differs from the method provided by the current Queryable implementation.update
method, which takes a set of attributes to mutate the instance, then persists the alterations. This will require some modifications to some of the private implementation details.