Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
* in case the user has a session id, keep it but proceed without a session
* in case we can't initialize the models proceed
* if APP_CONFIG[:reraise_errors] is set we'll crash instead in the latter case
default to reraise errors in dev and test environments.
|
|
Removing our own error class for this. It interferes with couch_rest_session_store tryign to catch the same errors.
|
|
|
|
|
|
This is similar to the migrations but instead of uploading the design
documents to couch it stores them in
tmp/database/design.json
within the rails directory.
database is the supposed database name without prefixes or suffixes
design is the name of the design doc CouchRest model would have created
The files also contain a couchrest checksum so couchrest can detect they
are up to date.
This commit also cleans up a few redundant things in the extension to
CouchRest::Model:Utils::Migrate that we used to have. There's no need
to loop through the 'normal' models in load_all_models_with_engines
since load_all_models_without_engines already does that. We were also
overwriting all_models_and_proxies with exactly the same code as in
the original.
|
|
Also we now depend upon couchrest model ~> 2.0.0. The beta2 still has the old naming scheme for CouchRest::Model::Utils::Migrate
|
|
|
|
|
|
catch Errno's and RestClient errors and throw a more meaningful error
|
|
This is just a quick hack. we should move all engines to a dir of their own.
|
|
|
|
|
|
|
|
|
|
This way we get syntax highlighting and so on.
|
|
the order either way.
|
|
|
|
Conflicts:
users/app/views/sessions/_nav.html.haml
|
|
Also added #assert_json_error to tests.
|
|
|
|
|
|
In order to get the rails generators and the like to work properly in engines we need to require all the dependencies in the engine.rb file.
Since I want to keep that list of engines in a centralized place we still need core and we need to require it from the other engines.
We don't want to require the core gem to be installed so I added it with :path option to the Gemfile.
|
|
|
|
|