Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: apps no longer use the same namespace hash #2313

Merged
merged 3 commits into from
Jul 3, 2013
Merged

Bugfix: apps no longer use the same namespace hash #2313

merged 3 commits into from
Jul 3, 2013

Conversation

seanlinsley
Copy link
Contributor

This was a big issue when running tests, since this:

app = ActiveAdmin::Application.new
app.namespace(:brand_new_ns)

Would end up creating :brand_new_ns in the main app, since our
settings module (which doesn't dup objects) was being used to create
the namespaces API.

This PR also includes a bonus: tests for existing functionality, plus the new Settings::Inheritance module.

This was a big issue when running tests, since this:
```ruby
app = ActiveAdmin::Application.new
app.namespace(:brand_new_ns)
```
Would end up creating `:brand_new_ns` in the main app, since our
settings module (which doesn't dup objects) was being used to create
the `namespaces` API.
Also added missing tests for `ActiveAdmin::Settings`
seanlinsley added a commit that referenced this pull request Jul 3, 2013
Bugfix: apps no longer use the same namespace hash
@seanlinsley seanlinsley merged commit 7f92ec3 into activeadmin:master Jul 3, 2013
@seanlinsley seanlinsley deleted the bugfix/namespace-pollution branch July 3, 2013 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant