Skip to content

Commit

Permalink
Eliminate need to call netzke in routes.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Gorin committed Dec 29, 2015
1 parent 59c7aa6 commit 6fbfe5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -115,4 +115,6 @@

* Calling `callParent` in JS functions from the "mixins" will now properly call the previous override if that was defined; see `spec/rails_app/app/components/js_mixins.rb` for an example.

* There's no longer need to call `netzke` in routes.rb unless you want to modify routing defaults.

Please check [0-12](https://github.com/netzke/netzke-core/blob/0-12/CHANGELOG.md) for previous changes.
3 changes: 3 additions & 0 deletions config/routes.rb
@@ -0,0 +1,3 @@
Rails.application.routes.draw do
netzke unless Rails.application.routes.named_routes.routes[:netzke]
end
1 change: 0 additions & 1 deletion spec/rails_app/config/routes.rb
@@ -1,5 +1,4 @@
Rails.application.routes.draw do
netzke
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".

Expand Down

0 comments on commit 6fbfe5d

Please sign in to comment.