Skip to content

Commit 17016b3

Browse files
committed
[RAILS] Added the force option to the 04-dsl.rb application template
Without force, and with the `rails generate` example in README, searchable.rb and index.html.erb files have been skipped.
1 parent 5f32e48 commit 17016b3

File tree

1 file changed

+2
-2
lines changed
  • elasticsearch-rails/lib/rails/templates

1 file changed

+2
-2
lines changed

elasticsearch-rails/lib/rails/templates/04-dsl.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737

3838
# copy_file File.expand_path('../searchable.dsl.rb', __FILE__), 'app/models/concerns/searchable.rb', force: true
3939
get 'https://raw.githubusercontent.com/elastic/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/searchable.dsl.rb',
40-
'app/models/concerns/searchable.rb'
40+
'app/models/concerns/searchable.rb', force: true
4141

4242
# copy_file File.expand_path('../index.html.dsl.erb', __FILE__), 'app/views/search/index.html.erb', force: true
4343
get 'https://raw.githubusercontent.com/elastic/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/index.html.dsl.erb',
44-
'app/views/search/index.html.erb'
44+
'app/views/search/index.html.erb', force: true
4545

4646
gsub_file "test/controllers/search_controller_test.rb", %r{test "should return facets" do.*?end}m, <<-CODE
4747
test "should return aggregations" do

0 commit comments

Comments
 (0)