Skip to content

Commit b40479d

Browse files
louimkarmi
authored andcommitted
[RAILS] Fix the regex for inserting the "kaminari" gem into the Gemfile
Closes elastic#337 Closes elastic#276
1 parent ab8c838 commit b40479d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch-rails/lib/rails/templates/02-pretty.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
# NOTE: Kaminari has to be loaded before Elasticsearch::Model so the callbacks are executed
4545
#
46-
insert_into_file 'Gemfile', <<-CODE, before: /gem "elasticsearch".+$/
46+
insert_into_file 'Gemfile', <<-CODE, before: /gem ["']elasticsearch["'].+$/
4747
4848
# NOTE: Kaminari has to be loaded before Elasticsearch::Model so the callbacks are executed
4949
gem 'kaminari'

0 commit comments

Comments
 (0)