Skip to content

Commit

Permalink
Use simpler format in default initializer template
Browse files Browse the repository at this point in the history
  • Loading branch information
shioyama committed Nov 1, 2020
1 parent 5ba8e2f commit 5305efe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/rails/generators/mobility/templates/initializer.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Mobility.configure do |config|
Mobility.configure do

# PLUGINS
config.plugins do
plugins do
# Backend
#
# Sets the default backend to use in models. This can be overridden in models
Expand Down
3 changes: 2 additions & 1 deletion spec/generators/rails/mobility/install_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
directory "config" do
directory "initializers" do
file "mobility.rb" do
contains "Mobility.configure do |config|"
contains "Mobility.configure do"
contains "plugins do"
contains "backend :key_value"
contains "backend_reader"
contains "query"
Expand Down

0 comments on commit 5305efe

Please sign in to comment.